summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2017-04-07 23:00:42 +1000
committerStenzek <stenzek@gmail.com>2017-04-07 23:03:14 +1000
commit2492f196a716d3594022a5ea8ca1ff0178ee23b5 (patch)
tree20f3b1bb3c5581c718493bec4b3827680d486a5a /Source/Core/VideoCommon/TextureCacheBase.cpp
parentf94cd57a7012bc6cce22f22f84356d9e260c0461 (diff)
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index 4894914b5c..dccdeffa20 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -870,7 +870,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,