summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorTellowKrinkle <tellowkrinkle@gmail.com>2022-06-11 02:51:24 -0500
committerTellowKrinkle <tellowkrinkle@gmail.com>2022-06-16 02:08:45 -0500
commit23c1721fbd317a31046affcf362848bc191f4711 (patch)
tree7e6f2698a7d0b4fab2793d0ba3b7c55a399d0433 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent70bf89fa59e3bd48633677374ca26124d36ff7e5 (diff)
VideoCommon: Reduce duplicates of non-palette-requiring texture decode shaders
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index dc08fd90bc..0ed5ffe014 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -2809,7 +2809,8 @@ bool TextureCacheBase::DecodeTextureOnGPU(TCacheEntry* entry, u32 dst_level, con
if (!info)
return false;
- const AbstractShader* shader = g_shader_cache->GetTextureDecodingShader(format, palette_format);
+ const AbstractShader* shader = g_shader_cache->GetTextureDecodingShader(
+ format, info->palette_size != 0 ? std::make_optional(palette_format) : std::nullopt);
if (!shader)
return false;