Skip to content

Commit

Permalink
Update VertexBufferObjectWithVAO.java
Browse files Browse the repository at this point in the history
  • Loading branch information
way-zer authored Jul 20, 2024
1 parent 96cd86d commit a7310ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void update(int targetOffset, float[] vertices, int sourceOffset, int cou
isDirty = true;
final int pos = byteBuffer.position();
byteBuffer.position(targetOffset * 4);
Buffers.copy(vertices, sourceOffset, count, byteBuffer);
Buffers.copy(vertices, sourceOffset, byteBuffer, count);
byteBuffer.position(pos);
buffer.position(0);
bufferChanged();
Expand Down

0 comments on commit a7310ce

Please sign in to comment.