mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-02 23:26:43 +00:00
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
12e80c271b
commit
bb37d1c339
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user