intel: fix the error in commit 7ed1fd5d84

This commit is contained in:
Xiang, Haihao 2008-03-17 17:02:42 +08:00
parent 4478926b3a
commit 4a556bcb17

View 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,