summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-03-06 11:24:33 -0700
committerCarl Worth <cworth@cworth.org>2014-04-14 15:05:34 -0700
commit063f9c6aef549beb2a3524351b4ba3b0a540be48 (patch)
treebbd084db4be7c456fc2ab9730a03fcce8d3cbcfd /src
parent6490bdf358b958e7333ed740e7746b963a6bcdca (diff)
mesa: fix copy & paste bugs in pack_ubyte_SRGB8()
Cc: "10.0" "10.1" <mesa-stable@lists.freedesktop.org> Reviewed-by: Roland Scheidegger <sroland@vmware.com> (cherry picked from commit 1e25aa4cdb3bb1f190ea3905eb1d169e0c5a1ef0)
Diffstat (limited to 'src')
-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 feebdb5fdef..c7b5404af7e 100644
--- a/src/mesa/main/format_pack.c
+++ b/src/mesa/main/format_pack.c
@@ -1039,8 +1039,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