OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba34475
)
mesa: Fix bug in _mesa_swizzle_ubyte_image
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 18 Jun 2008 17:43:06 +0000
(19:43 +0200)
committer
Jakob Bornecrantz
<jakob@tungstengraphics.com>
Wed, 18 Jun 2008 17:43:06 +0000
(19:43 +0200)
src/mesa/main/texstore.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/texstore.c
b/src/mesa/main/texstore.c
index
d7bfb69
..
519a73b
100644
(file)
--- 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 */