瀏覽代碼

Added stub debug context detection.

Camilla Berglund 13 年之前
父節點
當前提交
302037d5b4
共有 2 個文件被更改,包括 2 次插入4 次删除
  1. 0 4
      src/cocoa_window.m
  2. 2 0
      src/opengl.c

+ 0 - 4
src/cocoa_window.m

@@ -1104,10 +1104,6 @@ void _glfwPlatformRefreshWindowParams(void)
                            forAttribute:NSOpenGLPFASamples
                        forVirtualScreen:0];
     window->samples = value;
-
-    // These this is forced to false as long as Mac OS X lacks support for
-    // requesting debug contexts
-    window->glDebug = GL_FALSE;
 }
 
 

+ 2 - 0
src/opengl.c

@@ -366,6 +366,8 @@ GLboolean _glfwIsValidContext(_GLFWwindow* window, _GLFWwndconfig* wndconfig)
 
           if (flags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT)
               window->glForward = GL_TRUE;
+          if (flags & 0)
+              window->glDebug = GL_TRUE;
       }
     }