diff options
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index f42475e7d8..ccb0fd53d0 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -113,7 +113,7 @@ intel_miptree_create(struct intel_context *intel, /* * pitch == 0 indicates the null texture */ - if (!mt || mt->pitch) + if (!mt || !mt->pitch) return NULL; mt->region = intel_region_alloc(intel, |