VideoThread: Use video-owned fullscreen settings

Read exclusive fullscreen control from the GPU settings copy on the video
thread, preserving queued settings ordering and avoiding a settings race.
pull/3799/head
Stenzek 1 week ago
parent 67d5943128
commit e0519a899f
No known key found for this signature in database

@ -1468,10 +1468,10 @@ void VideoThread::RecreateRenderWindowOnThread(bool fullscreen, bool allow_exclu
exclusive_fullscreen_requested = fullscreen_mode.has_value();
}
std::optional<bool> exclusive_fullscreen_control;
if (g_settings.display_exclusive_fullscreen_control != DisplayExclusiveFullscreenControl::Automatic)
if (g_gpu_settings.display_exclusive_fullscreen_control != DisplayExclusiveFullscreenControl::Automatic)
{
exclusive_fullscreen_control =
(g_settings.display_exclusive_fullscreen_control == DisplayExclusiveFullscreenControl::Allowed);
(g_gpu_settings.display_exclusive_fullscreen_control == DisplayExclusiveFullscreenControl::Allowed);
}
g_gpu_device->DestroyMainSwapChain();

Loading…
Cancel
Save