SDL_SetVideoMode and the OpenGL context

Started by
-1 comments, last by Daggerbot 12 years, 3 months ago
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.

This topic is closed to new replies.

Advertisement