[SDL] opengl buffer state

Rhythmic Fistman rfistman at gmail.com
Fri Mar 30 08:36:34 PDT 2007


SDL probably doesn't specify this, and probably nor does the opengl standard,
but, can I say anything about the opengl buffer state between calls to
SDL_GL_SwapBuffers?

I'm trying to get vbl syncing in some SDL code (1.2.11), and instead of
changing all my sprite drawing code to use textures, I instead
made the conservative update/dirty region code draw using
textures, with no call to glClear. This worked ok for a few implementations,
however on others it looks like there are two opengl buffers to which
I draw, which of course doesn't work with conservative redraws.

Is there any SDL way of asking for only 1 buffer?

RF

-- 
felix: lightweight threads, HOFs and game scripting.
svn co https://svn.sourceforge.net/svnroot/felix/felix/trunk felix


More information about the SDL mailing list