Merge pull request #3506 from stenzek/odd-mips

TextureCacheBase: Change CalculateLevelSize to match D3D/OGL sizes
This commit is contained in:
Jules Blok 2016-01-13 23:10:18 +01:00
commit d54291f2e8

View File

@ -328,7 +328,7 @@ void TextureCacheBase::DumpTexture(TCacheEntryBase* entry, std::string basename,
static u32 CalculateLevelSize(u32 level_0_size, u32 level)
{
return (level_0_size + ((1 << level) - 1)) >> level;
return std::max(level_0_size >> level, 1u);
}
// Used by TextureCacheBase::Load