Mesa (master): mesa: fix copy & paste bugs in pack_ubyte_SARGB8()
Brian Paul
brianp at kemper.freedesktop.org
Thu Mar 6 18:17:22 UTC 2014
Module: Mesa
Branch: master
Commit: 9493fc729e35e36c1840957b4af40338e69236a5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9493fc729e35e36c1840957b4af40338e69236a5
Author: Brian Paul <brianp at vmware.com>
Date: Thu Mar 6 10:58:30 2014 -0700
mesa: fix copy & paste bugs in pack_ubyte_SARGB8()
Cc: "10.0" "10.1" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
---
src/mesa/main/format_pack.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/format_pack.c b/src/mesa/main/format_pack.c
index b870001..e0d2a18 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);
}
More information about the mesa-commit
mailing list