force gl finish

This commit is contained in:
mcrcortex
2025-06-07 19:29:56 +10:00
parent 3bfc0c266d
commit 21b497d2d4

View File

@@ -65,6 +65,9 @@ public class VoxyRenderSystem {
// than timeout, we keep the world acquired // than timeout, we keep the world acquired
world.acquireRef(); world.acquireRef();
//wait for opengl to be finished, this should hopefully ensure all memory allocations are free
glFinish();glFinish();
//Trigger the shared index buffer loading //Trigger the shared index buffer loading
SharedIndexBuffer.INSTANCE.id(); SharedIndexBuffer.INSTANCE.id();
Capabilities.init();//Ensure clinit is called Capabilities.init();//Ensure clinit is called