diff --git a/src/main/java/me/cortex/voxy/client/core/VoxyRenderSystem.java b/src/main/java/me/cortex/voxy/client/core/VoxyRenderSystem.java index 1f08d2a5..973c4da2 100644 --- a/src/main/java/me/cortex/voxy/client/core/VoxyRenderSystem.java +++ b/src/main/java/me/cortex/voxy/client/core/VoxyRenderSystem.java @@ -65,6 +65,9 @@ public class VoxyRenderSystem { // than timeout, we keep the world acquired 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 SharedIndexBuffer.INSTANCE.id(); Capabilities.init();//Ensure clinit is called