Jump to content
  • Advertisement
Sign in to follow this  
Waffler

OpenGL SDL, OpenGL, Alt-Tab?

This topic is 4490 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 looked around for a while, but could not find a satisfactory answer on how to prevent your texture mapping from becomming garbled after pressing alt-tab when in full-screen mode. Can anybody please help me? I know I would likely need to reload the textures, but how can I (preferably through SDL) check if the application has lost, then regained focus? I know this should be simple, and is likely handled through the message queue, but clearifying a few details would be greatly appreciated. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
I made it so I can reload all of my textures, and I'm using SDL_ACTIVEEVENT to check when it regains focus, but now I'm having a strange problem.

When I go back into the game after pressing alt-tab, it's becomes almost frozen. I say almost frozen, because nothing is moving and the screen buffer is a little garbled, but pressing Escape still exits the program. The screen freezes.

Can anyone explain why this is happening and what can be done to fix it?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!