mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-12 08:49:22 +07:00
Fix TextureArraySpriteBatch missing method issue (#8713)
Co-authored-by: vegeta1k95 <vfylfhby>
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
package com.unciv.ui.screens.basescreen;
|
package com.unciv.ui.screens.basescreen;
|
||||||
|
|
||||||
|
import java.nio.Buffer;
|
||||||
import java.nio.IntBuffer;
|
import java.nio.IntBuffer;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
@ -158,7 +159,7 @@ public class TextureArraySpriteBatch implements Batch {
|
|||||||
for (int i = 0; i < maxTextureUnits; i++) {
|
for (int i = 0; i < maxTextureUnits; i++) {
|
||||||
textureUnitIndicesBuffer.put(i);
|
textureUnitIndicesBuffer.put(i);
|
||||||
}
|
}
|
||||||
textureUnitIndicesBuffer.flip();
|
((Buffer) textureUnitIndicesBuffer).flip();
|
||||||
|
|
||||||
VertexDataType vertexDataType = (Gdx.gl30 != null) ? VertexDataType.VertexBufferObjectWithVAO : VertexDataType.VertexArray;
|
VertexDataType vertexDataType = (Gdx.gl30 != null) ? VertexDataType.VertexBufferObjectWithVAO : VertexDataType.VertexArray;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user