[SDL] SDL 1.3: OpenGL flickering
e_byard at yahoo.co.uk
Fri May 6 09:12:59 PDT 2011
I have converted my game from D3D to OpenGL, and it all seems to work, except I get flickering on a window
where stuff changes often (I don't redraw every frame, I use a dirty rects method...ish).
I initialise my windows with SDL_RENDERER_SINGLEBUFFER, but I assume OGL uses double buffering? It appears
as if it's swapping buffers but the 2nd/back buffer has old data in. Every 2nd update, as it were, the back buffer
My guess is the flickering is caused by something fairly simple.
This is on quite an old version (late 2010) of SDL 1.3 - pre the big render update.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL