i915: fallback on transfer mode
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 16 Jan 2009 08:06:33 +0000 (16:06 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 16 Jan 2009 08:06:33 +0000 (16:06 +0800)
src/mesa/drivers/dri/intel/intel_pixel_copy.c

index 447c6494e79107291e31a2342d0e821e9ce20c13..7c7aa6097c847ba717ef7a76af7dab0f64568d1a 100644 (file)
@@ -119,6 +119,12 @@ do_texture_copypixels(GLcontext * ctx,
    if (!src || !dst || type != GL_COLOR)
       return GL_FALSE;
 
+   if (ctx->_ImageTransferState) {
+      if (INTEL_DEBUG & DEBUG_PIXEL)
+         fprintf(stderr, "%s: check_color failed\n", __FUNCTION__);
+      return GL_FALSE;
+   }
+
    /* Can't handle overlapping regions.  Don't have sufficient control
     * over rasterization to pull it off in-place.  Punt on these for
     * now.