Merge pull request #5220 from stenzek/small-nonsquare-mips

TextureCache: Fix incomplete GPU texture decoding of non-square mips
This commit is contained in:
Anthony 2017-04-09 13:45:38 -07:00 committed by GitHub
commit c6b553b6d2
3 changed files with 5 additions and 3 deletions

View file

@ -869,7 +869,7 @@ TextureCacheBase::TCacheEntryBase* TextureCacheBase::Load(const u32 stage)
if (decode_on_gpu)
{
u32 row_stride = bytes_per_block * (mip_width / bsw);
u32 row_stride = bytes_per_block * (expanded_mip_width / bsw);
g_texture_cache->DecodeTextureOnGPU(entry, level, mip_src_data, mip_size,
static_cast<TextureFormat>(texformat), mip_width,
mip_height, expanded_mip_width, expanded_mip_height,