intel: check for miptree allocation failure

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2011-03-04 15:14:11 +00:00
parent de7678ef52
commit 6547253bd1

View File

@@ -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: