diff options
author | Brian Paul <[email protected]> | 2008-06-18 19:43:06 +0200 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2008-06-18 19:43:06 +0200 |
commit | b623fa9e2d6f97f9febc978c158d790b26e175a7 (patch) | |
tree | 602df305b7e6fd7142f9ae22055971eceea5d9a0 /src/mesa/main | |
parent | ba344753b16d7bc7df40bd85989d0c84e48190bb (diff) |
mesa: Fix bug in _mesa_swizzle_ubyte_image
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texstore.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |