diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2017-04-09 13:45:38 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-09 13:45:38 -0700 |
| commit | c6b553b6d26bc91c0ce49c43790733d6755156d9 (patch) | |
| tree | de9f0dfa1118c36a32e90f9d538531cbca6e881c /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | 9d070a5df79a7f34dc4936855da36a333803fa12 (diff) | |
| parent | 2492f196a716d3594022a5ea8ca1ff0178ee23b5 (diff) | |
Merge pull request #5220 from stenzek/small-nonsquare-mips
TextureCache: Fix incomplete GPU texture decoding of non-square mips
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 0db64e5996..c12c53be27 100644 --- a/Source/Core/VideoCommon/TextureCacheBase.cpp +++ b/Source/Core/VideoCommon/TextureCacheBase.cpp @@ -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, |
