1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Moved GLFW_VISIBLE hint use to glfwinfo.

This commit is contained in:
Camilla Berglund 2012-08-28 17:52:22 +02:00
parent f6a1bbf782
commit f5bfe41456
2 changed files with 2 additions and 3 deletions

View File

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

View File

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