Permalink
Browse files

Make sure to save the config while changing backends using the menu b…

…ar. Should help #11465
  • Loading branch information...
hrydgard committed Oct 10, 2018
1 parent 3189385 commit 0ad166d2047a086fa9ac298aae132a5fd92b8a5b
Showing with 6 additions and 0 deletions.
  1. +6 −0 Windows/MainWindowMenu.cpp
@@ -329,6 +329,8 @@ namespace MainWindow {
TranslateMenuItem(menu, ID_OPTIONS_DIRECT3D11);
TranslateMenuItem(menu, ID_OPTIONS_DIRECT3D9);
TranslateMenuItem(menu, ID_OPTIONS_OPENGL);
TranslateMenuItem(menu, ID_OPTIONS_VULKAN);
TranslateSubMenu(menu, "Rendering Mode", MENU_OPTIONS, SUBMENU_RENDERING_MODE);
TranslateMenuItem(menu, ID_OPTIONS_NONBUFFEREDRENDERING);
TranslateMenuItem(menu, ID_OPTIONS_BUFFEREDRENDERING);
@@ -773,21 +775,25 @@ namespace MainWindow {
case ID_OPTIONS_DIRECT3D9:
g_Config.iGPUBackend = (int)GPUBackend::DIRECT3D9;
g_Config.Save();
RestartApp();
break;
case ID_OPTIONS_DIRECT3D11:
g_Config.iGPUBackend = (int)GPUBackend::DIRECT3D11;
g_Config.Save();
RestartApp();
break;
case ID_OPTIONS_OPENGL:
g_Config.iGPUBackend = (int)GPUBackend::OPENGL;
g_Config.Save();
RestartApp();
break;
case ID_OPTIONS_VULKAN:
g_Config.iGPUBackend = (int)GPUBackend::VULKAN;
g_Config.Save();
RestartApp();
break;

0 comments on commit 0ad166d

Please sign in to comment.