Skip to content

Commit

Permalink
Fixed GL2 SpriteBatch crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Aug 12, 2024
1 parent 9d41741 commit 6ecc39b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arc-core/src/arc/graphics/g2d/SpriteBatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ protected void flush(){
mesh.render(getShader(), Gl.triangles, 0, count);

buffer.limit(buffer.capacity());
buffer.position(0);

idx = 0;
}
Expand Down

0 comments on commit 6ecc39b

Please sign in to comment.