projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9365738
)
_mesa_swizzle_ubyt_image: Don't use single swizzle_copy call
author
Xiang, Haihao
<haihao.xiang@intel.com>
Wed, 13 Feb 2008 07:57:44 +0000
(15:57 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Wed, 13 Feb 2008 08:00:25 +0000
(16:00 +0800)
if components don't match. fix #13508
src/mesa/main/texstore.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstore.c
b/src/mesa/main/texstore.c
index a8e639be6d6cfce6cc217282dda55e02740a74e7..37d6f81c8b903b1ae94c8dc66ee7961b89dc6d89 100644
(file)
--- 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 */