From c386a6a875d22940d8eaa8b0bf45011f3f44228d Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Sun, 27 Jan 2019 13:23:42 -0600 Subject: [PATCH] DolphinQt: Fix selection of PP shader when using anaglyph 3D. --- .../Config/Graphics/EnhancementsWidget.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp index 3e040cb1be..b5fc183999 100644 --- a/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp +++ b/Source/Core/DolphinQt/Config/Graphics/EnhancementsWidget.cpp @@ -153,10 +153,9 @@ void EnhancementsWidget::LoadPPShaders() { const bool anaglyph = g_Config.stereo_mode == StereoMode::Anaglyph; std::vector shaders = - g_Config.stereo_mode == StereoMode::Anaglyph ? - PostProcessingShaderImplementation::GetAnaglyphShaderList( - g_Config.backend_info.api_type) : - PostProcessingShaderImplementation::GetShaderList(g_Config.backend_info.api_type); + anaglyph ? PostProcessingShaderImplementation::GetAnaglyphShaderList( + g_Config.backend_info.api_type) : + PostProcessingShaderImplementation::GetShaderList(g_Config.backend_info.api_type); m_pp_effect->clear(); @@ -261,9 +260,11 @@ void EnhancementsWidget::SaveSettings() Config::SetBaseOrCurrent(Config::GFX_SSAA, is_ssaa); - Config::SetBaseOrCurrent( - Config::GFX_ENHANCE_POST_SHADER, - m_pp_effect->currentIndex() == 0 ? "(off)" : m_pp_effect->currentText().toStdString()); + const bool anaglyph = g_Config.stereo_mode == StereoMode::Anaglyph; + Config::SetBaseOrCurrent(Config::GFX_ENHANCE_POST_SHADER, + (!anaglyph && m_pp_effect->currentIndex() == 0) ? + "(off)" : + m_pp_effect->currentText().toStdString()); PostProcessingShaderConfiguration pp_shader; if (Config::Get(Config::GFX_ENHANCE_POST_SHADER) != "(off)")