summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-06-18 19:43:06 +0200
committerJakob Bornecrantz <jakob@tungstengraphics.com>2008-06-18 19:43:06 +0200
commitb623fa9e2d6f97f9febc978c158d790b26e175a7 (patch)
tree602df305b7e6fd7142f9ae22055971eceea5d9a0 /src/mesa
parentba344753b16d7bc7df40bd85989d0c84e48190bb (diff)
mesa: Fix bug in _mesa_swizzle_ubyte_image
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/texstore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index d7bfb69443..519a73b960 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 */