this was such an unbelievebly dumb and stupid mistake

This commit is contained in:
mcrcortex
2025-12-17 21:09:20 +10:00
parent 65e10c2c68
commit 6beb6b2037

View File

@@ -133,7 +133,7 @@ public class ChunkBoundRenderer {
//Batch the draws into groups of size 32 //Batch the draws into groups of size 32
int count = this.chunk2idx.size(); int count = this.chunk2idx.size();
if (count > 32) { if (count >= 32) {
glDrawElementsInstanced(GL_TRIANGLES, 6 * 2 * 3 * 32, GL_UNSIGNED_BYTE, 0, count/32); glDrawElementsInstanced(GL_TRIANGLES, 6 * 2 * 3 * 32, GL_UNSIGNED_BYTE, 0, count/32);
} }
if (count%32 != 0) { if (count%32 != 0) {