mirror of
https://github.com/glfw/glfw.git
synced 2026-09-23 00:59:48 +00:00
Move to GL_KHR_debug
Thank you, @linkmauve.
This commit is contained in:
+3
-3
@@ -132,10 +132,10 @@ int main(int argc, char** argv)
|
||||
// pointers should be re-usable between them
|
||||
gladLoadGLLoader((GLADloadproc) glfwGetProcAddress);
|
||||
|
||||
if (GLAD_GL_ARB_debug_output)
|
||||
if (GLAD_GL_KHR_debug)
|
||||
{
|
||||
glDebugMessageCallbackARB(debug_callback, NULL);
|
||||
glDebugMessageControlARB(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE);
|
||||
glDebugMessageCallback(debug_callback, NULL);
|
||||
glDebugMessageControl(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE);
|
||||
}
|
||||
|
||||
// Create the OpenGL objects inside the first context, created above
|
||||
|
||||
Reference in New Issue
Block a user