mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Make sure Windows shuts down its audio properly.
~EmuScreen can call PSP_Shutdown(), which calls host->ShutdownSound(). Because of this, we really need host to be WindowsHost during NativeShutdownGraphics().
This commit is contained in:
1 parent
4bb9e32f03
commit
f6743316db
1 file changed
+1
-1
@@ -150,8 +150,8 @@ unsigned int WINAPI TheThread(void *)
|
||||
shutdown:
|
||||
_InterlockedExchange(&emuThreadReady, THREAD_SHUTDOWN);
|
||||
|
||||
host = nativeHost;
|
||||
NativeShutdownGraphics();
|
||||
host = nativeHost;
|
||||
NativeShutdown();
|
||||
host = oldHost;
|
||||
host->ShutdownGL();
|
||||
|
||||
Reference in new issue
Block a user