mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
VideoConfig: Prevent race condition on g_Config when refreshing
There was a race condition between the video thread and the host thread, if corrections need to be made by VerifyValidity(). Briefly, the config will contain invalid values. Instead, pause emulation first, which will flush the video thread, update the config and correct it, then resume emulation, after which the video thread will detect the config has changed and act accordingly.
This commit is contained in:
parent
1a4883ac5a
commit
edb5f855c2
3 changed files with 10 additions and 3 deletions
|
@ -192,7 +192,6 @@ void VideoBackendBase::InitializeShared()
|
|||
|
||||
g_Config.Refresh();
|
||||
g_Config.UpdateProjectionHack();
|
||||
g_Config.VerifyValidity();
|
||||
UpdateActiveConfig();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue