Jump to content
  • Advertisement

Archived

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

matt_j

Full screen texture mess-up

This topic is 5282 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 have an app based on nehe''s basecode. When I switch to full screen, my textures all become white, so, of course, the result is ugly. The resolution and bit depth are exatly the same. Switching back to a window doesn''t fix the problem. What should I do?

Share this post


Link to post
Share on other sites
Advertisement
I''m going to assume you are using Windoze specific code, which I can''t help you with as much. I do know that opengl clears many state variables when switching display modes. Or at least glut does. Keep a backup of texture data and reinitialize it when you switch. That might help.

Life would be so much easier if we could just get the source code.

Share this post


Link to post
Share on other sites
Ok, here is the prob :
When you are switching to full screen, you probably create a new context. Thats not the same where you load your textures.
The prob is probably the Device Context. When you switch windowed to full screen, you have to reload your textures each time! Try it in any games, like UT, it will reload the textures.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!