summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-03-06 10:58:30 -0700
committerBrian Paul <[email protected]>2014-03-06 11:16:15 -0700
commit9493fc729e35e36c1840957b4af40338e69236a5 (patch)
tree1fa39b55c936e58add2c5c2803ebc1678f055511
parentfb781526787463cb4a1c596b6f8ed867d24b87a2 (diff)
mesa: fix copy & paste bugs in pack_ubyte_SARGB8()
Cc: "10.0" "10.1" <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
-rw-r--r--src/mesa/main/format_pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/format_pack.c b/src/mesa/main/format_pack.c
index b870001d909..e0d2a185eb0 100644
--- a/src/mesa/main/format_pack.c
+++ b/src/mesa/main/format_pack.c
@@ -1090,8 +1090,8 @@ pack_ubyte_SARGB8(const GLubyte src[4], void *dst)
{
GLuint *d = ((GLuint *) dst);
GLubyte r = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
- GLubyte g = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
- GLubyte b = linear_ubyte_to_srgb_ubyte(src[RCOMP]);
+ GLubyte g = linear_ubyte_to_srgb_ubyte(src[GCOMP]);
+ GLubyte b = linear_ubyte_to_srgb_ubyte(src[BCOMP]);
*d = PACK_COLOR_8888(src[ACOMP], r, g, b);
}