Fix _mesa_swizzle_ubyte_image() to deal with RGBA->RGB->RGBA
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Sep 2006 14:28:42 +0000 (14:28 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Sep 2006 14:28:42 +0000 (14:28 +0000)
commit0c9259f3b95615ceda134bd7074d871cd0186c89
tree4a709d6dda150f810257e9ddc64c8b4b78b4451a
parent5658810660aabc6348ae1b14eccbc8a88ce679f0
Fix _mesa_swizzle_ubyte_image() to deal with RGBA->RGB->RGBA
conversions, ensuring that the final A value is 0xff in those cases
where we use a RGBA hardware texture format to store RGB textures.
Fix a couple of cases where hardwired texture conversions were
ignoring this restriction.
src/mesa/main/texstore.c