Fix TextureArraySpriteBatch missing method issue (#8713)

Co-authored-by: vegeta1k95 <vfylfhby>
This commit is contained in:
vegeta1k95 2023-02-20 19:07:18 +01:00 committed by GitHub
parent a5f2db5ec0
commit c50c0a136e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
package com.unciv.ui.screens.basescreen;
import java.nio.Buffer;
import java.nio.IntBuffer;
import java.util.Arrays;
@ -158,7 +159,7 @@ public class TextureArraySpriteBatch implements Batch {
for (int i = 0; i < maxTextureUnits; i++) {
textureUnitIndicesBuffer.put(i);
}
textureUnitIndicesBuffer.flip();
((Buffer) textureUnitIndicesBuffer).flip();
VertexDataType vertexDataType = (Gdx.gl30 != null) ? VertexDataType.VertexBufferObjectWithVAO : VertexDataType.VertexArray;