diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index f42475e7d86..ccb0fd53d02 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,