From: Brian Paul Date: Thu, 6 Mar 2014 18:24:33 +0000 (-0700) Subject: mesa: fix copy & paste bugs in pack_ubyte_SRGB8() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e25aa4cdb3bb1f190ea3905eb1d169e0c5a1ef0;p=mesa.git mesa: fix copy & paste bugs in pack_ubyte_SRGB8() Cc: "10.0" "10.1" Reviewed-by: Roland Scheidegger --- diff --git a/src/mesa/main/format_pack.c b/src/mesa/main/format_pack.c index e0d2a185eb0..89958f79ff5 100644 --- a/src/mesa/main/format_pack.c +++ b/src/mesa/main/format_pack.c @@ -1044,8 +1044,8 @@ pack_ubyte_SRGB8(const GLubyte src[4], void *dst) { GLubyte *d = ((GLubyte *) dst); d[2] = linear_ubyte_to_srgb_ubyte(src[RCOMP]); - d[1] = linear_ubyte_to_srgb_ubyte(src[RCOMP]); - d[0] = linear_ubyte_to_srgb_ubyte(src[RCOMP]); + d[1] = linear_ubyte_to_srgb_ubyte(src[GCOMP]); + d[0] = linear_ubyte_to_srgb_ubyte(src[BCOMP]); } static void