From 1e25aa4cdb3bb1f190ea3905eb1d169e0c5a1ef0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 6 Mar 2014 11:24:33 -0700 Subject: [PATCH] mesa: fix copy & paste bugs in pack_ubyte_SRGB8() Cc: "10.0" "10.1" Reviewed-by: Roland Scheidegger --- 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 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 -- 2.30.2