VideoCommon: Move WM_USER_CREATE message to after backend initialization
Fixes the mouse cursor being left visible after ubershader precompilation when the hide option is checked.
This commit is contained in:
parent
d54ca2a16a
commit
b154edb4fb
|
@ -341,6 +341,7 @@ static void CpuThread()
|
|||
{
|
||||
Common::SetCurrentThreadName("CPU-GPU thread");
|
||||
g_video_backend->Video_Prepare();
|
||||
Host_Message(WM_USER_CREATE);
|
||||
}
|
||||
|
||||
// This needs to be delayed until after the video backend is ready.
|
||||
|
@ -409,6 +410,7 @@ static void FifoPlayerThread()
|
|||
else
|
||||
{
|
||||
g_video_backend->Video_Prepare();
|
||||
Host_Message(WM_USER_CREATE);
|
||||
Common::SetCurrentThreadName("FIFO-GPU thread");
|
||||
}
|
||||
|
||||
|
@ -601,6 +603,7 @@ static void EmuThread(std::unique_ptr<BootParameters> boot)
|
|||
Common::SetCurrentThreadName("Video thread");
|
||||
|
||||
g_video_backend->Video_Prepare();
|
||||
Host_Message(WM_USER_CREATE);
|
||||
|
||||
// Spawn the CPU thread
|
||||
s_cpu_thread = std::thread(cpuThreadFunc);
|
||||
|
|
|
@ -194,9 +194,6 @@ void VideoBackendBase::InitializeShared()
|
|||
g_Config.UpdateProjectionHack();
|
||||
g_Config.VerifyValidity();
|
||||
UpdateActiveConfig();
|
||||
|
||||
// Notify the core that the video backend is ready
|
||||
Host_Message(WM_USER_CREATE);
|
||||
}
|
||||
|
||||
void VideoBackendBase::ShutdownShared()
|
||||
|
|
Loading…
Reference in New Issue