浏览代码

Corrected a version check which caused crashes on non-4.3 profiles.

Zachary Lund 11 年之前
父节点
当前提交
72c156f549
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libobs-opengl/gl-subsystem.c

+ 2 - 2
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 "