Full screen problem with OpenGL tutorial
I started with NeHe''s great OpenGL tutorial today and I''m having a small problem with the OpenGL framework provided.
Both the windowed and the fullscreen mode work fine the first time after the program is started but as soon as I want to switch to the full screen mode for the second time the wglMakeCurrent() fails and the program bombs out with the "Can''t Activate The GL Rendering Context." error message. This doesn''t happen with the windowed mode though.
What could be the cause that the full screen mode is initialized fine the first time after the program start but not the second time? Could it be a problem with some resource not being freed properly?
I used the source from the lesson 2 on the NeHe site (Visual C++ 6). I use Windows 98 and have a Voodoo3 card. I''ll try it monday morning at uni on a Windows 2000 machine with GeForce MX.
Anyone else had this problem before?
I''m trying to find a solution. Be patient. I don''t have the problem, so it''s hard to track down.
It has something to do with the screen colors. I was having the same problem, but I played around with it and got it to work.
wire
wire
I sometimes have trouble along these lines...but seeing as I've got an old Riva128 card I figured the drivers were the problem (especially seeing as with ogl my computer sometimes crashes)
Edited by - NickB on December 9, 2000 2:17:33 PM
Edited by - NickB on December 9, 2000 2:17:33 PM
It could be because your video card doesn't support 640x480 16-bit rendering when you're in fulscreen mode. I have this problem when i mess around with the resolution for my engine and it will only work when you're in windowed mode. Try 800x600 or that one 1024xwhatever that might work.
Whe I push F1 on both my computers they restart and sometimes when i push ESC it happens too
Open mouth, insert foot
Edited by - oglman on December 9, 2000 2:37:59 PM
Whe I push F1 on both my computers they restart and sometimes when i push ESC it happens too
Open mouth, insert foot
Edited by - oglman on December 9, 2000 2:37:59 PM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement