Skip to content

Commit

Permalink
fixed syntax for arrayBuffer in VertexBuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
kpal81xd committed May 2, 2024
1 parent d0b1b28 commit 04880bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/debug-lines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ class DebugLines {
this.app.graphicsDevice,
oldVBuffer.getFormat(),
oldVBuffer.getNumVertices() * 2,
{ usage: BUFFER_DYNAMIC },
arrayBuffer
{ usage: BUFFER_DYNAMIC, data: arrayBuffer }
);
this.vertexData = new Float32Array(arrayBuffer);
this.colorData = new Uint32Array(arrayBuffer);
Expand Down

0 comments on commit 04880bb

Please sign in to comment.