gallium: more elaborate tracking of front color buffer state
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 10 Apr 2008 00:39:51 +0000 (18:39 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 10 Apr 2008 00:39:51 +0000 (18:39 -0600)
commit311e40268414649f047ee177ba22a17a2d437843
tree41aa5d3e308e25c1753eb882eb25d1bc80918316
parent54d7c399a888283711bdc00f93cb54a3ce0b30eb
gallium: more elaborate tracking of front color buffer state

This fixes the case where the app calls SwapBuffers then calls glReadPixels
to read the front color buffer.  We now keep track of when the front buffer
is a _logically_ copy of the back buffer (after SwapBuffers) and read from
the back color buffer instead of the front.
src/mesa/state_tracker/st_atom_framebuffer.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_flush.c
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_readpixels.h
src/mesa/state_tracker/st_context.h
src/mesa/state_tracker/st_framebuffer.c