intel: fix the error in commit 7ed1fd5d8438e55fe24091844cdfccb0881306bc
authorXiang, Haihao <haihao.xiang@intel.com>
Mon, 17 Mar 2008 09:02:42 +0000 (17:02 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 17 Mar 2008 09:02:42 +0000 (17:02 +0800)
src/mesa/drivers/dri/intel/intel_mipmap_tree.c

index f42475e7d86fdb5e40a92cdd6b82f531240db835..ccb0fd53d02ac05a931f6c51a8c7585ed69a6f5e 100644 (file)
@@ -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,