diff options
author | Xiang, Haihao <[email protected]> | 2008-03-17 17:02:42 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-03-17 17:02:42 +0800 |
commit | 4a556bcb17b8b0dd9ba4ef6eccbb3cfb2ad6a025 (patch) | |
tree | 08097dc339b702f3c7c39a6d6d3285b70ee77b50 | |
parent | 4478926b3a6d15d079a44f6cebebc1db85d382f6 (diff) |
intel: fix the error in commit 7ed1fd5d8438e55fe24091844cdfccb0881306bc
-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 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, |