From: Brian Paul Date: Thu, 6 Mar 2014 17:58:30 +0000 (-0700) Subject: mesa: fix copy & paste bugs in pack_ubyte_SARGB8() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9493fc729e35e36c1840957b4af40338e69236a5;p=mesa.git mesa: fix copy & paste bugs in pack_ubyte_SARGB8() Cc: "10.0" "10.1" Reviewed-by: Jose Fonseca --- 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); }