Signed-off-by: Chris Forbes <[email protected]>
---
src/mesa/drivers/dri/intel/intel_tex.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/drivers/dri/intel/intel_tex.c
b/src/mesa/drivers/dri/intel/intel_tex.c
index 6820f98..fdf5812 100644
--- a/src/mesa/drivers/dri/intel/intel_tex.c
+++ b/src/mesa/drivers/dri/intel/intel_tex.c
@@ -107,6 +107,9 @@ intel_alloc_texture_image_buffer(struct gl_context *ctx,
image->Width, image->Height, image->Depth, intel_image->mt);
}
+ /* Make sure that what we just generated actually works */
+ assert(intel_miptree_match_image(intel_texobj->mt, image));
+
return true;
}
--
1.8.0.3
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev