Redirect negative display list calls to VBOs globally (fixes Smart Moving) (#217)

* Redirect negative display list calls to VBOs globally

Fixes Smart Moving not rendering player models

* Remove now redundant glCallList redirects

* Make VertexBuffer keep track of its own draw mode
This commit is contained in:
makamys authored and GitHub committed 2024-01-20 12:21:33 -08:00
1 parent 32e2efc1e5
commit 733ffff81f
8 files changed
+26 -34

No files matched your search

@@ -157,7 +157,7 @@ public class HorizonRenderer {
vertexBuffer.bind();
GL11.glVertexPointer(3, GL11.GL_FLOAT, 12, 0L);
GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);
vertexBuffer.draw(floatBuffer, GL11.GL_QUADS);
vertexBuffer.draw(floatBuffer);
GL11.glDisableClientState(GL11.GL_VERTEX_ARRAY);
vertexBuffer.unbind();
}