Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10824 from AdmiralCurtiss/optional-palette-format…
…-fix

ShaderCache: Fix inverted usage of palette_format.
  • Loading branch information
JosJuice committed Jul 9, 2022
2 parents fac6689 + e072aaa commit 77f8e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoCommon/ShaderCache.cpp
Expand Up @@ -1371,8 +1371,8 @@ ShaderCache::GetTextureDecodingShader(TextureFormat format,

const std::string name =
palette_format.has_value() ?
fmt::format("Texture decoding compute shader: {}", format) :
fmt::format("Texture decoding compute shader: {}, {}", format, *palette_format);
fmt::format("Texture decoding compute shader: {}, {}", format, *palette_format) :
fmt::format("Texture decoding compute shader: {}", format);

std::unique_ptr<AbstractShader> shader =
g_renderer->CreateShaderFromSource(ShaderStage::Compute, shader_source, name);
Expand Down

0 comments on commit 77f8e98

Please sign in to comment.