SDL_SetVideoMode, openGL, and fullscreen

I’m having a problem using SDL_SetVideoMode with openGl and fullscreen.

It works once, but if I call it a second time to change the screen
resolution, then the screen goes black. If I call it a second time with the
same screen resolution, then the screen starts flickering like I’m not
rendering anything over the old screen.

And I’ve tried calling SDL_QuitSubSystem(SDL_INIT_VIDEO) and
SDL_InitSubSystem(SDL_INIT_VIDEO), but it doesn’t help.

Thanks for any help.
EvilTesla-RG–
View this message in context: http://old.nabble.com/SDL_SetVideoMode%2C-openGL%2C-and-fullscreen-tp31939236p31939236.html
Sent from the SDL mailing list archive at Nabble.com.