i965: Handle miptree creation failure in intel_alloc_texture_storage()
Check intel_miptree_create() return value before using it as a pointer. Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
committed by
Ville Syrjälä
parent
375943bc0a
commit
78a89d6fa0
@@ -147,6 +147,9 @@ intel_alloc_texture_storage(struct gl_context *ctx,
|
||||
num_samples,
|
||||
INTEL_MIPTREE_TILING_ANY);
|
||||
|
||||
if (intel_texobj->mt == NULL) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
for (face = 0; face < numFaces; face++) {
|
||||
|
||||
Reference in New Issue
Block a user