[Mesa-dev] [PATCH 07/12] intel: Return failure properly in the texsubimage blit path.
Eric Anholt
eric at anholt.net
Thu Apr 11 11:06:34 PDT 2013
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.
---
src/mesa/drivers/dri/intel/intel_tex_subimage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/intel/intel_tex_subimage.c b/src/mesa/drivers/dri/intel/intel_tex_subimage.c
index b02e5fc..42cc739 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_subimage.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_subimage.c
@@ -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;
}
/**
--
1.7.10.4
More information about the mesa-dev
mailing list