Windows: Prevent shutdown lag for non-GL.

For Vulkan/D3D, it was taking an extra second to quit.
This commit is contained in:
Unknown W. Brackets 2018-02-10 16:23:34 -08:00
parent a85a88e112
commit 586e35ad23

View file

@ -234,6 +234,10 @@ void MainThreadFunc() {
}
}
Core_Stop();
if (!useEmuThread) {
// Process the shutdown. Without this, non-GL delays 800ms on shutdown.
Core_Run(g_graphicsContext);
}
Core_WaitInactive(800);
g_inLoop = false;