remove unhelpful buffer delete mac test
This commit is contained in:
-15
@@ -176,21 +176,6 @@ public class MinecraftGLWrapper
|
||||
{
|
||||
GL32.glDeleteBuffers(buffer);
|
||||
|
||||
// attempt to fix a bug with Mac where de-allocated buffers
|
||||
// are still being used, causing a SIGSEGV native crash
|
||||
// and/or corrupting native memory
|
||||
if (EPlatform.get() == EPlatform.MACOS)
|
||||
{
|
||||
// force the delete buffer (and any other in-flight) GL
|
||||
// commands to finish before continuing
|
||||
GL32.glFinish();
|
||||
|
||||
// James hates this idea.
|
||||
// He kinda hopes it doesn't help,
|
||||
// but maybe metal's API just doesn't finish correctly so we need to wait a moment longer before continuing.
|
||||
try { Thread.sleep(1); } catch (InterruptedException ignore) { }
|
||||
}
|
||||
|
||||
// MC's implementation has a bug where it will throw:
|
||||
// GL_INVALID_OPERATION in glBufferData(immutable)
|
||||
// when attempting to delete Storage Buffers
|
||||
|
||||
Reference in New Issue
Block a user