Jump to content
  • Advertisement
Sign in to follow this  
Funkyjive

SDL fullscreen flicker problem

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

Hello again. I am running into a little problem with SDL. I create a SDL/OpenGL window just fine. The problem occurs when I press the windows key on my keyboard to minimize it and then click it in the taskbar to bring it back up. When I restore the window I get a flickering problem with just a black background and white lines across and empty lines where I can still see my desktop. The flickering is out of control. Here is the code I am using to create my window...
SDL_SetVideoMode(1280,1024,32, SDL_OPENGL | SDL_FULLSCREEN)
Any ideas why it is doing this? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Sounds like a refresh problem. Have you enabled double buffering?

SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

then at the end of the draw loop call SDL_GL_SwapBuffers(); to swap them.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!