From: Chris Wilson Date: Fri, 4 Mar 2011 15:14:11 +0000 (+0000) Subject: intel: check for miptree allocation failure X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6547253bd138db815173c00ca2dc220e8ad20ab1;p=mesa.git intel: check for miptree allocation failure Signed-off-by: Chris Wilson --- diff --git a/src/mesa/drivers/dri/intel/intel_tex_validate.c b/src/mesa/drivers/dri/intel/intel_tex_validate.c index 8537e7f3682..a11b07ed09d 100644 --- a/src/mesa/drivers/dri/intel/intel_tex_validate.c +++ b/src/mesa/drivers/dri/intel/intel_tex_validate.c @@ -140,6 +140,8 @@ intel_finalize_mipmap_tree(struct intel_context *intel, GLuint unit) cpp, comp_byte, GL_TRUE); + if (!intelObj->mt) + return GL_FALSE; } /* Pull in any images not in the object's tree: