Skip to content

Commit baa5472

Browse files
committed
Qt: Fix postfx option pane not loading
1 parent ef377fb commit baa5472

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/util/postprocessing.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ std::vector<PostProcessing::ShaderOption> PostProcessing::Config::GetStageOption
263263
if (!shader)
264264
return ret;
265265

266+
shader->LoadOptions(si, section);
266267
ret = shader->TakeOptions();
267268
return ret;
268269
}

src/util/postprocessing_shader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ std::vector<PostProcessing::ShaderOption> PostProcessing::Shader::TakeOptions()
6666
return std::move(m_options);
6767
}
6868

69-
void PostProcessing::Shader::LoadOptions(SettingsInterface& si, const char* section)
69+
void PostProcessing::Shader::LoadOptions(const SettingsInterface& si, const char* section)
7070
{
7171
for (ShaderOption& option : m_options)
7272
{

src/util/postprocessing_shader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Shader
3838
virtual bool IsValid() const = 0;
3939

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

4343
const ShaderOption* GetOptionByName(const std::string_view& name) const;
4444
ShaderOption* GetOptionByName(const std::string_view& name);

0 commit comments

Comments
 (0)