From 21b497d2d4a6829c8c1987b57b330a7e13954217 Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sat, 7 Jun 2025 19:29:56 +1000 Subject: [PATCH] force gl finish --- src/main/java/me/cortex/voxy/client/core/VoxyRenderSystem.java | 3 +++ 1 file changed, 3 insertions(+) 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