From 72c156f549bde01545d324c252425fd402962095 Mon Sep 17 00:00:00 2001 From: Zachary Lund Date: Thu, 6 Feb 2014 01:41:55 -0600 Subject: [PATCH] Corrected a version check which caused crashes on non-4.3 profiles. --- libobs-opengl/gl-subsystem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs-opengl/gl-subsystem.c b/libobs-opengl/gl-subsystem.c index 7a622c790..ebe42dc12 100644 --- a/libobs-opengl/gl-subsystem.c +++ b/libobs-opengl/gl-subsystem.c @@ -71,9 +71,9 @@ static void APIENTRY gl_debug_proc( static void gl_enable_debug() { /* Perhaps we should create GLEW contexts? */ - if (!ogl_IsVersionGEQ(4, 3)) + if (ogl_IsVersionGEQ(4, 3)) glDebugMessageCallback(gl_debug_proc, NULL); - if (ogl_ext_ARB_debug_output) + else if (ogl_ext_ARB_debug_output) glDebugMessageCallbackARB(gl_debug_proc, NULL); else { blog(LOG_DEBUG, "Failed to set GL debug callback as it is "