Skip to content

Commit

Permalink
Qt: Fix postfx option pane not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 15, 2023
1 parent ef377fb commit baa5472
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/util/postprocessing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ std::vector<PostProcessing::ShaderOption> PostProcessing::Config::GetStageOption
if (!shader)
return ret;

shader->LoadOptions(si, section);
ret = shader->TakeOptions();
return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion src/util/postprocessing_shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ std::vector<PostProcessing::ShaderOption> PostProcessing::Shader::TakeOptions()
return std::move(m_options);
}

void PostProcessing::Shader::LoadOptions(SettingsInterface& si, const char* section)
void PostProcessing::Shader::LoadOptions(const SettingsInterface& si, const char* section)
{
for (ShaderOption& option : m_options)
{
Expand Down
2 changes: 1 addition & 1 deletion src/util/postprocessing_shader.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Shader
virtual bool IsValid() const = 0;

std::vector<ShaderOption> TakeOptions();
void LoadOptions(SettingsInterface& si, const char* section);
void LoadOptions(const SettingsInterface& si, const char* section);

const ShaderOption* GetOptionByName(const std::string_view& name) const;
ShaderOption* GetOptionByName(const std::string_view& name);
Expand Down

0 comments on commit baa5472

Please sign in to comment.