Win32 Fullscreen Problems

michael_woe wrote on Friday, March 04, 2005:

I have written a small test application in Dev-Cpp using GLFW. Everything worked great until I tried to switch to fullscreen mode. Then nothing is displayed at all, just a black screen (or whatever you set width glClearColor()). I cannot find any errors and it really works perfectly in windowed mode (the only modification I make is changing the parameter in glfwOpenWindow() from GLFW_FULLSCREEN to GLFW_WINDOW) and the particles and pong3d example work correctly too. Is this something I don’t know about OpenGL? Any hints, what the error could be?
Thanks in advance

marcus256 wrote on Saturday, March 05, 2005:

Try glViewport()… I believe this will change with GLFW 2.5. In fullscreen mode GLFW 2.4.2 opens a 0x0 window that is resized to whatever resolution the display is at, which means that the initial OpenGL rendering viewport is 0x0 pixles - at least I think that is what is happening.

michael_woe wrote on Saturday, March 05, 2005:

Oh thank you very much. Now it works. That’s great.