diff options
author | Xiang, Haihao <[email protected]> | 2008-02-13 15:57:44 +0800 |
---|---|---|
committer | Brian <[email protected]> | 2008-02-13 07:07:47 -0700 |
commit | 7d8df58a631a4e6070a64788f3faf5746fd5446a (patch) | |
tree | 7fcc2a84928b5344c4a2b419bca86e2551dc1234 | |
parent | 762c074012b10e0f859d518b096c120392d7d03d (diff) |
_mesa_swizzle_ubyt_image: Don't use single swizzle_copy call
if components don't match. fix #13508
-rw-r--r-- | src/mesa/main/texstore.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 9b8a06df145..2ac458b45fa 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/main/texstore.c @@ -809,6 +809,7 @@ _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 && + srcComponents == dstComponents && srcRowStride == srcWidth * srcComponents && dimensions < 3) { /* 1 and 2D images only */ |