Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Ilthigore

Fullscreen doesn't work

This topic is 5751 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I try running my programs using the Open-GL Basecode (not NeHe Basecode) in fullscreen and it says, "Cannot create GL Rendering Context." If I use the NeHe basecode it says "Error creating Window" and leaves the display mode on 640x480 when I return to the desktop. Any ideas as to how I can change the code (I''d prefer using the Open-GL basecode rather than the NeHe as my games are all written in it. Help would be great. >>>>>>>>>>>>>>>>> Ilthigore <<<<<<<<<<<<<<<<<

Share this post


Link to post
Share on other sites
Advertisement
After a bit of experimenting I changed the "bits" parameter on "CreateGLWindow()" to 32 and it worked OK. Any ideas why???

>>>>>>>>>>>>>>>>>
Ilthigore
<<<<<<<<<<<<<<<<<

Share this post


Link to post
Share on other sites
when theres an error and the program closes right away, the destruction code doesnt execute, so your program wouldnt have a chance to return the display mode to default.

try setting up everything so that when theres an error, it calls the destruction function before quitting.

if(blalblah()==0)
{
destruction();
PostQuitMessage(0);
}

[edited by - tyro on September 21, 2002 10:38:11 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!