diff options
| author | Tilka <tilkax@gmail.com> | 2019-02-28 11:03:25 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-28 11:03:25 +0000 |
| commit | 6be35422e91840e90687a1e779b66d9a1af8596f (patch) | |
| tree | e4d7b3ac97941891e5da7205697f548fe7aa4bd7 /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | f220dc7432ee8837fd0447c712b053e6ec987b19 (diff) | |
| parent | 8192c0dd48c9dd5afe835ebc94ed45e477c3b12e (diff) | |
Merge pull request #7832 from stenzek/xfb-decoding-regression
TextureCache: Fix GPU decoding of XFB copies
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/TextureCacheBase.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp index 2e57aa2dc5..0418eef40e 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); |
