mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2025-08-04 18:38:45 +00:00
Fixed crash when changing per-game backend from null
This commit is contained in:
parent
53ad973d6a
commit
dfa2204aa2
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ void ConfigureGraphics::PopulateVSyncModeSelection(bool use_setting) {
|
||||||
|
|
||||||
void ConfigureGraphics::UpdateVsyncSetting() const {
|
void ConfigureGraphics::UpdateVsyncSetting() const {
|
||||||
const Settings::RendererBackend backend{GetCurrentGraphicsBackend()};
|
const Settings::RendererBackend backend{GetCurrentGraphicsBackend()};
|
||||||
if (backend == Settings::RendererBackend::Null) {
|
if (backend == Settings::RendererBackend::Null || vsync_mode_combobox_enum_map.empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue