Skip to content

Commit

Permalink
Merge pull request dolphin-emu#8324 from CookiePLMonster/adapter-comb…
Browse files Browse the repository at this point in the history
…o-fix

Enable adapter combo only if adapters are supported by current backend
  • Loading branch information
JosJuice authored Sep 28, 2019
2 parents de700eb + df0ff7f commit 06ab51b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ void GeneralWidget::OnEmulationStateChanged(bool running)
m_backend_combo->setEnabled(!running);
m_render_main_window->setEnabled(!running);

m_adapter_combo->setEnabled(!running);
const bool supports_adapters = !g_Config.backend_info.Adapters.empty();
m_adapter_combo->setEnabled(!running && supports_adapters);
}

void GeneralWidget::AddDescriptions()
Expand Down

0 comments on commit 06ab51b

Please sign in to comment.