aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXiang, Haihao <[email protected]>2008-04-21 17:34:00 +0800
committerXiang, Haihao <[email protected]>2008-04-21 17:34:00 +0800
commit7c2a3fced8bbf0915ee4160c23b1752917c1e69d (patch)
tree31d7e4a8eda4075d77ef126f14dc5fc61fc05fc2
parent33107357a1226b9218fac410a7502a981aac5cc5 (diff)
intel: fix an assertion failure. fix bug #15575
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_image.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c
index a56a3956466..bcb65835c6b 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_image.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_image.c
@@ -348,8 +348,10 @@ intelTexImage(GLcontext * ctx,
postConvWidth = 32 / texelBytes;
texImage->RowStride = postConvWidth;
}
-
- assert(texImage->RowStride == postConvWidth);
+
+ if (!intelImage->mt) {
+ assert(texImage->RowStride == postConvWidth);
+ }
}
/* Release the reference to a potentially orphaned buffer.