intel: check for miptree allocation failure
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Mar 2011 15:14:11 +0000 (15:14 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 7 Mar 2011 10:53:09 +0000 (10:53 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/intel/intel_tex_validate.c

index 8537e7f3682b192b16aec156b117eb469950ab1a..a11b07ed09d71111fc5e04ab3dfbabec683cd865 100644 (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: