From: Keith Whitwell Date: Thu, 21 Sep 2006 12:43:05 +0000 (+0000) Subject: Fix the dstMap for rgb888 and bgr888 texture formats, which are the X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=167ca59fe893a62e23e799f51608d18847dd590a;p=mesa.git Fix the dstMap for rgb888 and bgr888 texture formats, which are the opposite to what you'd naively expect. --- 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,