瀏覽代碼

Added channel bit depth hint defaults.

Camilla Berglund 13 年之前
父節點
當前提交
54f1a57f8d
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/window.c

+ 6 - 0
src/window.c

@@ -84,6 +84,12 @@ void _glfwSetDefaultWindowHints(void)
 
     // The default is to allow window resizing
     _glfwLibrary.hints.resizable = GL_TRUE;
+
+    // The default is 24 bits of depth, 8 bits of color
+    _glfwLibrary.hints.depthBits = 24;
+    _glfwLibrary.hints.redBits   = 8;
+    _glfwLibrary.hints.greenBits = 8;
+    _glfwLibrary.hints.blueBits  = 8;
 }