swrast: Adjust colors based on ReadBuffer visual, not context visual
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 4 Mar 2010 01:16:11 +0000 (17:16 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 6 Mar 2010 00:04:59 +0000 (16:04 -0800)
commitebbec7e4e44fccf496a9a663bdcc643efead6e95
tree1b130d252ab1c0536eb1f83ba0debf2376bb2a66
parentc67af0628b1b020b36df7dc81e9ab125da06b3a9
swrast: Adjust colors based on ReadBuffer visual, not context visual

In the presence of FBOs, the visual of the context may not match the,
possibly fake, visual of the current ReadBuffer.  Note that the caller
of adjust_colors correctly uses the visual of the ReadBuffer.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/swrast/s_readpix.c