From: Brian Paul Date: Wed, 18 Jun 2008 17:43:06 +0000 (+0200) Subject: mesa: Fix bug in _mesa_swizzle_ubyte_image X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b623fa9e2d6f97f9febc978c158d790b26e175a7;p=mesa.git mesa: Fix bug in _mesa_swizzle_ubyte_image --- diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index d7bfb69443a..519a73b9604 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -823,7 +823,8 @@ _mesa_swizzle_ubyte_image(GLcontext *ctx, /* _mesa_printf("map %d %d %d %d\n", map[0], map[1], map[2], map[3]); */ - if (srcRowStride == dstRowStride && + if (srcComponents == dstComponents && + srcRowStride == dstRowStride && srcRowStride == srcWidth * srcComponents && dimensions < 3) { /* 1 and 2D images only */