mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
intel: check for null texture. (fix #13902)
This commit is contained in:
parent
c8b505d826
commit
8b69c42b35
1 changed files with 2 additions and 2 deletions
|
|
@ -111,9 +111,9 @@ intel_miptree_create(struct intel_context *intel,
|
|||
first_level, last_level, width0,
|
||||
height0, depth0, cpp, compress_byte);
|
||||
/*
|
||||
* pitch == 0 indicates the null texture
|
||||
* pitch == 0 || height == 0 indicates the null texture
|
||||
*/
|
||||
if (!mt || !mt->pitch)
|
||||
if (!mt || !mt->pitch || !mt->total_height)
|
||||
return NULL;
|
||||
|
||||
mt->region = intel_region_alloc(intel,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue