From 167ca59fe893a62e23e799f51608d18847dd590a Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 21 Sep 2006 12:43:05 +0000 Subject: Fix the dstMap for rgb888 and bgr888 texture formats, which are the opposite to what you'd naively expect. --- src/mesa/main/texstore.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 8456273dbb..394c70190b 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, -- cgit v1.2.3