mesa: Fix bug in _mesa_swizzle_ubyte_image

This commit is contained in:
Brian Paul
2008-06-18 19:43:06 +02:00
committed by Jakob Bornecrantz
parent ba344753b1
commit b623fa9e2d
+2 -1
View File
@@ -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 */