mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
a7b580da0c
commit
4ee00501b2
|
@ -308,7 +308,13 @@ void GSSettingsDlg::UpdateRenderers()
|
||||||
|
|
||||||
vector<GSSetting> renderers;
|
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;
|
GSRendererType renderer_sel = GSRendererType::Default;
|
||||||
|
|
||||||
for(size_t i = 0; i < theApp.m_gs_renderers.size(); i++)
|
for(size_t i = 0; i < theApp.m_gs_renderers.size(); i++)
|
||||||
|
|
Loading…
Reference in New Issue