commit ec11e1da0e490fdcc8977016900d22ca980d41a3 parent 1e919eda27a36a7900ebcbec51e3a6e9adf159cd Author: Michael Savage <mikejsavage@gmail.com> Date: Tue Dec 27 16:58:52 +0200 Only try to use AMD debug output if KHR debug isn't available Diffstat:
gl.cc | | | 3 | +-- |
diff --git a/gl.cc b/gl.cc @@ -151,8 +151,7 @@ GLFWwindow * gl_init() { glDebugMessageControl( GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE ); } } - - if( GLAD_GL_AMD_debug_output != 0 ) { + else if( GLAD_GL_AMD_debug_output != 0 ) { INFO( "Initialising AMD debug output" ); glDebugMessageCallbackAMD( ( GLDEBUGPROCAMD ) gl_debug_output_callback_amd, NULL );