From: Xiang, Haihao Date: Mon, 17 Mar 2008 09:02:42 +0000 (+0800) Subject: intel: fix the error in commit 7ed1fd5d8438e55fe24091844cdfccb0881306bc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a556bcb17b8b0dd9ba4ef6eccbb3cfb2ad6a025;p=mesa.git intel: fix the error in commit 7ed1fd5d8438e55fe24091844cdfccb0881306bc --- 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,