config: Fixes Crash When Switching From Vulkan To Null

TODO: Automatically Enable Null When FPS Drops To 0.0 Then Switch Back To Vulkan [Temporary Fix] For The Owl Bug 0.0
This commit is contained in:
Phoenix 2024-09-20 20:33:18 +10:00
parent bf3ca4199c
commit 403beb36af

View File

@ -225,7 +225,7 @@ void ConfigureGraphics::PopulateVSyncModeSelection(bool use_setting) {
void ConfigureGraphics::UpdateVsyncSetting() const {
const Settings::RendererBackend backend{GetCurrentGraphicsBackend()};
if (backend == Settings::RendererBackend::Null) {
if (backend == Settings::RendererBackend::Null || vsync_mode_combobox_enum_map.empty()) {
return;
}