OSDN Git Service

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 a56a395..bcb6583 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.