mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
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:
@ -341,6 +341,7 @@ static void CpuThread()
|
|||||||
{
|
{
|
||||||
Common::SetCurrentThreadName("CPU-GPU thread");
|
Common::SetCurrentThreadName("CPU-GPU thread");
|
||||||
g_video_backend->Video_Prepare();
|
g_video_backend->Video_Prepare();
|
||||||
|
Host_Message(WM_USER_CREATE);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This needs to be delayed until after the video backend is ready.
|
// This needs to be delayed until after the video backend is ready.
|
||||||
@ -409,6 +410,7 @@ static void FifoPlayerThread()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
g_video_backend->Video_Prepare();
|
g_video_backend->Video_Prepare();
|
||||||
|
Host_Message(WM_USER_CREATE);
|
||||||
Common::SetCurrentThreadName("FIFO-GPU thread");
|
Common::SetCurrentThreadName("FIFO-GPU thread");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -601,6 +603,7 @@ static void EmuThread(std::unique_ptr<BootParameters> boot)
|
|||||||
Common::SetCurrentThreadName("Video thread");
|
Common::SetCurrentThreadName("Video thread");
|
||||||
|
|
||||||
g_video_backend->Video_Prepare();
|
g_video_backend->Video_Prepare();
|
||||||
|
Host_Message(WM_USER_CREATE);
|
||||||
|
|
||||||
// Spawn the CPU thread
|
// Spawn the CPU thread
|
||||||
s_cpu_thread = std::thread(cpuThreadFunc);
|
s_cpu_thread = std::thread(cpuThreadFunc);
|
||||||
|
@ -194,9 +194,6 @@ void VideoBackendBase::InitializeShared()
|
|||||||
g_Config.UpdateProjectionHack();
|
g_Config.UpdateProjectionHack();
|
||||||
g_Config.VerifyValidity();
|
g_Config.VerifyValidity();
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
|
|
||||||
// Notify the core that the video backend is ready
|
|
||||||
Host_Message(WM_USER_CREATE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoBackendBase::ShutdownShared()
|
void VideoBackendBase::ShutdownShared()
|
||||||
|
Reference in New Issue
Block a user