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:
Stenzek 2017-07-30 14:52:58 +10:00
parent d54ca2a16a
commit b154edb4fb
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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()