intel: fix an assertion failure. fix bug #15575
authorXiang, Haihao <haihao.xiang@intel.com>
Mon, 21 Apr 2008 09:34:00 +0000 (17:34 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 21 Apr 2008 09:34:00 +0000 (17:34 +0800)
src/mesa/drivers/dri/intel/intel_tex_image.c

index a56a3956466b8b6308234f6e2ecfff80b9bbd206..bcb65835c6bdd1d1a829f5daf0fe8811c8adb31f 100644 (file)
@@ -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.