Skip to content
Permalink
Browse files
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.
@@ -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);

0 comments on commit 77f8e98

Please sign in to comment.