mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 19:55:27 +02: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:
@@ -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