Skip to content

Commit

Permalink
Possible draw discard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jul 31, 2024
1 parent 1fdfcdc commit 6676d38
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arc-core/src/arc/graphics/g2d/SpriteBatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,13 @@ protected void z(float z){
intZ = Float.floatToRawIntBits(z + 16f);
}

@Override
protected void discard(){
super.discard();

buffer.position(0);
}

@Override
protected void draw(Texture texture, float[] spriteVertices, int offset, int count){
if(sort && !flushing){
Expand Down

0 comments on commit 6676d38

Please sign in to comment.