diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-05-10 12:16:19 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-10 12:16:19 +0200 |
| commit | fd1ea63383f7d9189a14a99948e08fddc4e4d7ee (patch) | |
| tree | 53566962d59b182719e727c1fcd430022c79fa6a /Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp | |
| parent | 060c750a892eb71e0ac4bc2f81f088b279906912 (diff) | |
| parent | be007b436c210a164ca7710761d35e88357fdfff (diff) | |
Merge pull request #6788 from spycrab/qt_gconf_fixes
Qt/GraphicsWindow: Fix multiple issues
Diffstat (limited to 'Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp')
| -rw-r--r-- | Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp b/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp index e78985321c..6053420ed9 100644 --- a/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp +++ b/Source/Core/DolphinQt2/Config/Graphics/GeneralWidget.cpp @@ -173,8 +173,6 @@ void GeneralWidget::SaveSettings() const auto current_backend = backend->GetName(); if (SConfig::GetInstance().m_strVideoBackend != current_backend) { - SConfig::GetInstance().m_strVideoBackend = current_backend; - if (backend->GetName() == "Software Renderer") { QMessageBox confirm_sw; @@ -201,7 +199,11 @@ void GeneralWidget::SaveSettings() } } SConfig::GetInstance().m_strVideoBackend = current_backend; - backend->InitBackendInfo(); + + g_Config.Refresh(); + + g_video_backend = backend.get(); + g_video_backend->InitBackendInfo(); emit BackendChanged(QString::fromStdString(current_backend)); break; } |
