Attempt to fix GL errors on Linux during buffer cleanup

Attempt to fix #950
This commit is contained in:
James Seibel
2025-03-18 19:51:22 -05:00
parent c0bb120669
commit 1341ea3f3d
@@ -180,7 +180,15 @@ public class MinecraftGLWrapper implements IMinecraftGLWrapper
/** @see GL32#glDeleteBuffers(int) */
@Override
public void glDeleteBuffers(int buffer)
{ GlStateManager._glDeleteBuffers(buffer); }
{
GL32.glDeleteBuffers(buffer);
// MC's implementation has a bug where it will throw:
// GL_INVALID_OPERATION in glBufferData(immutable)
// when attempting to delete Storage Buffers
// So we need to manually delete the buffers ourselves
//GlStateManager._glDeleteBuffers(buffer);
}
// culling //