summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstore.c
diff options
context:
space:
mode:
authorWang Zhenyu <[email protected]>2006-12-04 15:48:04 +0800
committerKeith Packard <[email protected]>2007-01-06 15:49:23 -0800
commitcaf8010652f77e7687c0a3b7c267ba49d0a24d74 (patch)
treeb21776131775e7ec72e5ab57c962226eaa755030 /src/mesa/main/texstore.c
parentf34cad0f972ca838cb223429acab54d26c2f6a57 (diff)
parent8c1cc5fd8084e7a927b15c88709a615fa16b06a3 (diff)
Merge branch 'master' into crestline
Conflicts: src/mesa/drivers/dri/i965/brw_tex_layout.c Michel Dänzer replaced the copy of the 945 mipmap layout code with that from the 945 driver directly.
Diffstat (limited to 'src/mesa/main/texstore.c')
-rw-r--r--src/mesa/main/texstore.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 89563842c25..87f8fa7a0d4 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -808,7 +808,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 == srcWidth * srcComponents &&
+ if (srcRowStride == dstRowStride &&
+ srcRowStride == srcWidth * srcComponents &&
dimensions < 3) {
/* 1 and 2D images only */
GLubyte *dstImage = (GLubyte *) dstAddr