Set _NEW_BUFFERS in glRead/DrawBuffer().
authorBrian <brian.paul@tungstengraphics.com>
Mon, 29 Oct 2007 23:36:39 +0000 (17:36 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 30 Oct 2007 17:32:53 +0000 (11:32 -0600)
commitba0fcc47d61be6caa2f4a5f4eb0c36eba9e2cb59
tree90ea47035e35907cd32c638c30555d4acbd1d87f
parentb19a93393043371776af6d50662a3eb0a9a965ce
Set _NEW_BUFFERS in glRead/DrawBuffer().

Previously, we set _NEW_PIXEL and _NEW_COLOR in these functions, respectively.
That correponds to the GL attribute groups, but doesn't make much sense
otherwise.  This could improve validation efficiency in a few places too.
It looks like all the drivers are already checking for _NEW_BUFFERS in the
right places (since that's the bit for FBO state) so we can trim out
_NEW_PIXEL and _NEW_COLOR at any time.
src/mesa/drivers/x11/xm_dd.c
src/mesa/main/buffers.c
src/mesa/main/state.c
src/mesa/state_tracker/st_atom_framebuffer.c