extraneous mipmap generation prune

OR spits out quite a few pointless mips for non square textures, which can lead to it triggering that AssertFatal(mNumMipLevels <= c_maxMipLevels, "GBitmap::allocateBitmap: too many miplevels"); entry
This commit is contained in:
Azaezel 2015-01-11 17:45:29 -06:00
parent 33a0579735
commit b8c750dd56
2 changed files with 2 additions and 2 deletions

View file

@ -1098,7 +1098,7 @@ void GFXTextureManager::_validateTexParams( const U32 width, const U32 height,
currHeight = 1;
inOutNumMips++;
} while ( currWidth != 1 || currHeight != 1 );
} while ( currWidth != 1 && currHeight != 1 );
}
}
}