I have a project in the works with OpenGL and SDL. Users have the option of using a full-screen or windowed mode for the display.
I use SDL_SetVideoMode
to set up the window, but this solution destroys the original SDL_Surface
context (so all my OpenGL textures get cleaned too).
How can I correctly switch between full-screen and windowed mode without textures cleaning?