Jump to content
  • Advertisement
Sign in to follow this  

SDL_SetVideoMode and the OpenGL context

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

In a program that uses SDL and OpenGL, calling SDL_SetVideoMode appears to preserve the previous OpenGL context whenever possible. Is there a way of knowing if the context is reset? I haven't encountered this yet, but it seems like something that would happen if some vital video settings change. This could be very important in determining when to reload textures and rebuild vertex buffers. Any help is appreciated.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!