gsdx:windows: Don't change renderer when changing adapter

The previous behaviour loaded the saved renderer config whenever the
adapter combobox was changed. The renderer will now only change if the
new adapter doesn't support the currently selected renderer (i.e
Direct3D11 might not be supported, so it'll revert to Direct3D 9).

Fixes #1080.
This commit is contained in:
Jonathan Li 2016-01-02 22:20:30 +00:00
parent 12e80c271b
commit bb37d1c339

View File

@ -308,7 +308,13 @@ void GSSettingsDlg::UpdateRenderers()
vector<GSSetting> renderers;
GSRendererType renderer_setting = static_cast<GSRendererType>(theApp.GetConfig("Renderer", static_cast<int>(GSRendererType::Default)));
GSRendererType renderer_setting;
if (ComboBoxGetSelData(IDC_RENDERER, i))
renderer_setting = static_cast<GSRendererType>(i);
else
renderer_setting = static_cast<GSRendererType>(theApp.GetConfig("Renderer", static_cast<int>(GSRendererType::Default)));
GSRendererType renderer_sel = GSRendererType::Default;
for(size_t i = 0; i < theApp.m_gs_renderers.size(); i++)