From 2492f196a716d3594022a5ea8ca1ff0178ee23b5 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Fri, 7 Apr 2017 23:00:42 +1000 Subject: TextureCache: Fix incomplete GPU texture decoding of non-square mips --- Source/Core/VideoCommon/TextureCacheBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp') 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(texformat), mip_width, mip_height, expanded_mip_width, expanded_mip_height, -- cgit v1.2.3