summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2006-09-21 12:43:05 +0000
committerKeith Whitwell <[email protected]>2006-09-21 12:43:05 +0000
commit167ca59fe893a62e23e799f51608d18847dd590a (patch)
tree89554014cc6ce1f4a521055815d6cf183bc93489
parentcac5974bf9385f8c9bd46f9c90bfa8144f0c33d6 (diff)
Fix the dstMap for rgb888 and bgr888 texture formats, which are the
opposite to what you'd naively expect.
-rw-r--r--src/mesa/main/texstore.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 8456273dbb1..394c70190b3 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -1668,9 +1668,9 @@ _mesa_texstore_rgb888(TEXSTORE_PARAMS)
/* dstmap - how to swizzle from RGBA to dst format:
*/
- dstmap[0] = 0;
+ dstmap[0] = 2;
dstmap[1] = 1;
- dstmap[2] = 2;
+ dstmap[2] = 0;
dstmap[3] = ONE; /* ? */
_mesa_swizzle_ubyte_image(ctx, dims,
@@ -1794,9 +1794,9 @@ _mesa_texstore_bgr888(TEXSTORE_PARAMS)
/* dstmap - how to swizzle from RGBA to dst format:
*/
- dstmap[0] = 2;
+ dstmap[0] = 0;
dstmap[1] = 1;
- dstmap[2] = 0;
+ dstmap[2] = 2;
dstmap[3] = ONE; /* ? */
_mesa_swizzle_ubyte_image(ctx, dims,