Qt: Fix postfx option pane not loading
This commit is contained in:
parent
ef377fbd12
commit
baa5472cc2
|
@ -263,6 +263,7 @@ std::vector<PostProcessing::ShaderOption> PostProcessing::Config::GetStageOption
|
|||
if (!shader)
|
||||
return ret;
|
||||
|
||||
shader->LoadOptions(si, section);
|
||||
ret = shader->TakeOptions();
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue