diff options
author | Brian Paul <[email protected]> | 2014-03-06 11:24:33 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-03-06 11:39:41 -0700 |
commit | 1e25aa4cdb3bb1f190ea3905eb1d169e0c5a1ef0 (patch) | |
tree | 462c3493c727701730297d9a7c5d27f68941fe17 /src/mesa/main | |
parent | 9493fc729e35e36c1840957b4af40338e69236a5 (diff) |
mesa: fix copy & paste bugs in pack_ubyte_SRGB8()
Cc: "10.0" "10.1" <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/format_pack.c | 4 |
1 files 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 |