Merge pull request #10824 from AdmiralCurtiss/optional-palette-format-fix
ShaderCache: Fix inverted usage of palette_format.
This commit is contained in:
commit
77f8e98fee
|
@ -1371,8 +1371,8 @@ ShaderCache::GetTextureDecodingShader(TextureFormat format,
|
||||||
|
|
||||||
const std::string name =
|
const std::string name =
|
||||||
palette_format.has_value() ?
|
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 =
|
std::unique_ptr<AbstractShader> shader =
|
||||||
g_renderer->CreateShaderFromSource(ShaderStage::Compute, shader_source, name);
|
g_renderer->CreateShaderFromSource(ShaderStage::Compute, shader_source, name);
|
||||||
|
|
Loading…
Reference in New Issue