diff options
author | Xiang, Haihao <[email protected]> | 2008-02-13 15:57:44 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-02-13 16:00:25 +0800 |
commit | e45e33854289222cabb491d4605bf381b1631054 (patch) | |
tree | 90f924c4aa4e88fa17569a91d3d6c4c00bfee2b9 /src/mesa | |
parent | 9365738c36f1f0288e2576edbc621b5ed4d8736c (diff) |
_mesa_swizzle_ubyt_image: Don't use single swizzle_copy call
if components don't match. fix #13508
Diffstat (limited to 'src/mesa')
-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 a8e639be6d6..37d6f81c8b9 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 */ |