From 89c0d4900bfd3bb4f58b25eb1ee6cc7011083088 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Tue, 23 Apr 2024 08:26:46 +0200 Subject: [PATCH] Fix post processing menu in the fullscreen UI (#3187) --- src/core/fullscreen_ui.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/fullscreen_ui.cpp b/src/core/fullscreen_ui.cpp index 571da9924..a0f4be705 100644 --- a/src/core/fullscreen_ui.cpp +++ b/src/core/fullscreen_ui.cpp @@ -4424,6 +4424,7 @@ void FullscreenUI::DrawDisplaySettingsPage() void FullscreenUI::PopulatePostProcessingChain(SettingsInterface* si) { const u32 stages = PostProcessing::Config::GetStageCount(*si); + s_postprocessing_stages.clear(); s_postprocessing_stages.reserve(stages); for (u32 i = 0; i < stages; i++) { @@ -4451,12 +4452,12 @@ void FullscreenUI::DrawPostProcessingSettingsPage() MenuHeading(FSUI_CSTR("Controls")); DrawToggleSetting(bsi, FSUI_ICONSTR(ICON_FA_MAGIC, "Enable Post Processing"), - FSUI_CSTR("If not enabled, the current post processing chain will be ignored."), "Display", - "PostProcessing", false); + FSUI_CSTR("If not enabled, the current post processing chain will be ignored."), "PostProcessing", + "Enabled", false); if (MenuButton(FSUI_ICONSTR(ICON_FA_SEARCH, "Reload Shaders"), FSUI_CSTR("Reloads the shaders from disk, applying any changes."), - bsi->GetBoolValue("Display", "PostProcessing", false))) + bsi->GetBoolValue("PostProcessing", "Enabled", false))) { if (System::IsValid() && PostProcessing::ReloadShaders()) ShowToast(std::string(), FSUI_STR("Post-processing shaders reloaded."));