Qt: Fix postfx option pane not loading

This commit is contained in:
Stenzek 2023-10-16 01:00:43 +10:00
parent ef377fbd12
commit baa5472cc2
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View File

@ -263,6 +263,7 @@ std::vector<PostProcessing::ShaderOption> PostProcessing::Config::GetStageOption
if (!shader)
return ret;
shader->LoadOptions(si, section);
ret = shader->TakeOptions();
return ret;
}

View File

@ -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)
{

View File

@ -38,7 +38,7 @@ public:
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);