summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-03-17 17:02:42 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2008-03-17 17:02:42 +0800
commit4a556bcb17b8b0dd9ba4ef6eccbb3cfb2ad6a025 (patch)
tree08097dc339b702f3c7c39a6d6d3285b70ee77b50 /src/mesa/drivers/dri
parent4478926b3a6d15d079a44f6cebebc1db85d382f6 (diff)
intel: fix the error in commit 7ed1fd5d8438e55fe24091844cdfccb0881306bc
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/intel/intel_mipmap_tree.c2
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,