Jump to content
  • Advertisement
Sign in to follow this  
DanoruX

Texture disappearing when switching to fullscreen?

This topic is 3331 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

For some reason when I toggle to fullscreen my texture (right now I'm only using 1 for testing) disappears and my program only renders a square in the last used glColor3f. I'm probably forgetting to reinitialize something, but I don't know what.

Share this post


Link to post
Share on other sites
Advertisement
when you switch to fullscreen, your opengl context gets reset, so you must reload everything (textures, vertex buffers etc)

Share this post


Link to post
Share on other sites
like DanoruX saiz if u destroy the opengl rc + recreate a new one, all opengl info is lost
perhaps what u can do is just resize the window so its the same size as a fullscreen

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!