Fixed Context init when using the debug library.
Removed glGetError call before buffer swapping.
This commit is contained in:
parent
58703c742d
commit
f4eb23f860
|
@ -637,7 +637,8 @@ public final class Display {
|
|||
if ( !isCreated() )
|
||||
throw new IllegalStateException("Display not created");
|
||||
|
||||
Util.checkGLError();
|
||||
if ( LWJGLUtil.DEBUG )
|
||||
Util.checkGLError();
|
||||
Context.swapBuffers();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -118,6 +118,7 @@ public class ContextCapabilitiesGenerator {
|
|||
writer.println("\tprivate Set " + ALL_INIT_METHOD_NAME + "(boolean forwardCompatible) throws LWJGLException {");
|
||||
|
||||
// Load the basic pointers we need to detect OpenGL version and supported extensions.
|
||||
writer.println("\t\tGL11_glGetError_pointer = GLContext.getFunctionAddress(\"glGetError\");");
|
||||
writer.println("\t\tGL11_glGetString_pointer = GLContext.getFunctionAddress(\"glGetString\");");
|
||||
|
||||
// Initialize GL11.glGetIntegerv and GL30.glGetStringi here, in case we have created an OpenGL 3.0 context.
|
||||
|
|
Loading…
Reference in New Issue