mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-19 14:52:40 +08:00
wrong byte fill length (#8085)
This commit is contained in:
@@ -632,7 +632,7 @@ export class Graphics extends UIRenderable {
|
||||
|
||||
ia.vertexBuffers[0].update(renderData.vData, byteOffset);
|
||||
ia.vertexCount = renderData.vertexStart;
|
||||
ia.indexBuffer!.update(renderData.iData, renderData.indicesStart * Uint32Array.BYTES_PER_ELEMENT);
|
||||
ia.indexBuffer!.update(renderData.iData, renderData.indicesStart * Uint16Array.BYTES_PER_ELEMENT);
|
||||
ia.indexCount = renderData.indicesStart;
|
||||
|
||||
renderData.lastFilledVertex = renderData.vertexStart;
|
||||
|
||||
Reference in New Issue
Block a user