summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2019-02-28 20:19:37 +1000
committerStenzek <stenzek@gmail.com>2019-02-28 20:19:37 +1000
commitdb6763019d08e8b47b640054595350a21793afd0 (patch)
treef3a78710aa70072397a7dfa4e87470afc5e438fc /Source/Core/VideoCommon/TextureCacheBase.cpp
parent902e407ae5eb39e03b127e9fd58f4a8193cd2ab8 (diff)
TextureCache: Fix GPU decoding of XFB copies not falling back to CPU
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index 3beaeedbf8..19719a2189 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -1593,12 +1593,12 @@ void TextureCacheBase::LoadTextureLevelZeroFromMemory(TCacheEntry* entry_to_upda
const u8* tlut = &texMem[tex_info.tlut_address];
if (!decode_on_gpu ||
- DecodeTextureOnGPU(entry_to_update, 0, tex_info.src_data, tex_info.total_bytes,
- tex_info.full_format.texfmt, tex_info.native_width, tex_info.native_height,
- tex_info.expanded_width, tex_info.expanded_height,
- tex_info.bytes_per_block *
- (tex_info.expanded_width / tex_info.block_width),
- tlut, tex_info.full_format.tlutfmt))
+ !DecodeTextureOnGPU(entry_to_update, 0, tex_info.src_data, tex_info.total_bytes,
+ tex_info.full_format.texfmt, tex_info.native_width,
+ tex_info.native_height, tex_info.expanded_width, tex_info.expanded_height,
+ tex_info.bytes_per_block *
+ (tex_info.expanded_width / tex_info.block_width),
+ tlut, tex_info.full_format.tlutfmt))
{
size_t decoded_texture_size = tex_info.expanded_width * sizeof(u32) * tex_info.expanded_height;
CheckTempSize(decoded_texture_size);