From: Xiang, Haihao Date: Mon, 21 Apr 2008 09:34:00 +0000 (+0800) Subject: intel: fix an assertion failure. fix bug #15575 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c2a3fced8bbf0915ee4160c23b1752917c1e69d;p=mesa.git intel: fix an assertion failure. fix bug #15575 --- 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.