intel: Return failure properly in the texsubimage blit path.
authorEric Anholt <eric@anholt.net>
Thu, 11 Apr 2013 17:30:51 +0000 (10:30 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 12 Apr 2013 23:32:13 +0000 (16:32 -0700)
We assert that failure doesn't happen, but it fixes a warning in the
release build and it would at least give working behavior for a user by
falling back to the normal texsubimage path.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/intel/intel_tex_subimage.c

index b02e5fc..42cc739 100644 (file)
@@ -146,7 +146,7 @@ intel_blit_texsubimage(struct gl_context * ctx,
    drm_intel_bo_unreference(temp_bo);
    _mesa_unmap_teximage_pbo(ctx, packing);
 
-   return true;
+   return ret;
 }
 
 /**