# SDL\_SetVideoMode, openGL, and fullscreen

**URL:** <https://discourse.libsdl.org/t/sdl-setvideomode-opengl-and-fullscreen/18280>\
**Category:** SDL Development\
**Created:** [June 27, 2011, 4:29pm UTC](https://discourse.libsdl.org/t/sdl-setvideomode-opengl-and-fullscreen/18280 "2011-06-27T16:29:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eviltesla\_at\_live.co](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/eviltesla_at_live.co/32/2378_2.png) [@eviltesla\_at\_live.co](https://discourse.libsdl.org/u/eviltesla_at_live.co)\
**Post date:** [June 27, 2011, 4:29pm UTC](https://discourse.libsdl.org/t/sdl-setvideomode-opengl-and-fullscreen/18280/1 "2011-06-27T16:29:26Z")

</div>

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](http://old.nabble.com/SDL_SetVideoMode%2C-openGL%2C-and-fullscreen-tp31939236p31939236.html)  
Sent from the SDL mailing list archive at [Nabble.com](http://Nabble.com).
