[SDL] SDL 1.3: OpenGL flickering

ebyard e_byard at yahoo.co.uk
Fri May 6 09:12:59 PDT 2011


Hi 

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
is updated.

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.

Thanks
Ed




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20110506/8df1bebf/attachment.htm>


More information about the SDL mailing list