浏览代码

Moved GLFW_VISIBLE hint use to glfwinfo.

Camilla Berglund 13 年之前
父节点
当前提交
f5bfe41456
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 2 0
      tests/glfwinfo.c
  2. 0 3
      tests/windows.c

+ 2 - 0
tests/glfwinfo.c

@@ -207,6 +207,8 @@ int main(int argc, char** argv)
     if (strategy)
         glfwWindowHint(GLFW_OPENGL_ROBUSTNESS, strategy);
 
+    glfwWindowHint(GLFW_VISIBLE, GL_FALSE);
+
     // We assume here that we stand a better chance of success by leaving all
     // possible details of pixel format selection to GLFW
 

+ 0 - 3
tests/windows.c

@@ -55,8 +55,6 @@ int main(void)
 
     for (i = 0;  i < 4;  i++)
     {
-        glfwWindowHint(GLFW_VISIBLE, GL_FALSE);
-
         windows[i] = glfwCreateWindow(200, 200, GLFW_WINDOWED, titles[i], NULL);
         if (!windows[i])
         {
@@ -73,7 +71,6 @@ int main(void)
                      0.f);
 
         glfwSetWindowPos(windows[i], 100 + (i & 1) * 300, 100 + (i >> 1) * 300);
-        glfwShowWindow(windows[i]);
     }
 
     while (running)