Attempt to fix JDK8 compatibility with TextureArraySpriteBatch

This commit is contained in:
vegeta1k95 2023-02-23 00:03:05 +01:00
parent 4e662a460b
commit 5077477987

View File

@ -1108,8 +1108,8 @@ public class TextureArraySpriteBatch implements Batch {
mesh.setVertices(vertices, 0, idx);
mesh.getIndicesBuffer().position(0);
mesh.getIndicesBuffer().limit(count);
((Buffer) mesh.getIndicesBuffer()).position(0);
((Buffer) mesh.getIndicesBuffer()).limit(count);
if (blendingDisabled) {
Gdx.gl.glDisable(GL20.GL_BLEND);