Another round of fixing attribute interpolation for glDraw/CopyPixels.
authorBrian <brian@i915.localnet.net>
Thu, 21 Jun 2007 15:15:32 +0000 (09:15 -0600)
committerBrian <brian@i915.localnet.net>
Thu, 21 Jun 2007 15:15:32 +0000 (09:15 -0600)
commit171dcdfa27dda30916a7f9bfed89577feee5d350
tree88624d960231df741ceaa2e5ed2005ebb97d7e22
parentfe11b2c04bf206bd50654c31e6789519c6c07563
Another round of fixing attribute interpolation for glDraw/CopyPixels.

Need to turn off FRAG_BIT_COL0 in swrast->_ActiveAttribMask when doing
glRead/CopyPixels to prevent the user's colors from getting overwritten
when a fragment program is active.
This was happening in the DRI drivers when MaintainTexEnv program was
used (the texenv fragment program was enabled when _swrast_DrawPixels was
called).
This still isn't an ideal solution, but fixes things for now.
src/mesa/drivers/dri/i915/intel_pixel.c
src/mesa/drivers/dri/i915tex/intel_pixel_draw.c
src/mesa/swrast/s_copypix.c
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_span.c