System: Fix possible deadlock when starting

HC mode + debug windows enabled
This commit is contained in:
Stenzek
2025-11-30 16:16:01 +10:00
parent 177afb2aff
commit 1706dac0f0

View File

@@ -4833,8 +4833,11 @@ void System::CheckForSettingsChanges(const Settings& old_settings)
}
}
if (g_settings.gpu_use_thread && g_settings.gpu_max_queued_frames != old_settings.gpu_max_queued_frames) [[unlikely]]
if (IsValid() && g_settings.gpu_use_thread && g_settings.gpu_max_queued_frames != old_settings.gpu_max_queued_frames)
[[unlikely]]
{
GPUThread::SyncGPUThread(false);
}
}
void System::SetTaintsFromSettings()