mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-10-10 21:06:20 +02:00
VideoCommon: Reduce duplicates of non-palette-requiring texture decode shaders
This commit is contained in:
1 parent
70bf89fa59
commit
23c1721fbd
5 files changed
+34
-20
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user