Move to GL_KHR_debug

Thank you, @linkmauve.
This commit is contained in:
Camilla Berglund
2016-09-23 14:25:21 +02:00
parent 9017eaee08
commit 2ed818bc03
3 changed files with 207 additions and 65 deletions
+3 -3
View File
@@ -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