From f6743316dbdf4bb37ee8db825240951115f5d90c Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 20 Jun 2013 23:13:00 -0700 Subject: [PATCH] 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(). --- Windows/EmuThread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/EmuThread.cpp b/Windows/EmuThread.cpp index cb0be4f817..eb78ec2a6b 100644 --- a/Windows/EmuThread.cpp +++ b/Windows/EmuThread.cpp @@ -150,8 +150,8 @@ unsigned int WINAPI TheThread(void *) shutdown: _InterlockedExchange(&emuThreadReady, THREAD_SHUTDOWN); - host = nativeHost; NativeShutdownGraphics(); + host = nativeHost; NativeShutdown(); host = oldHost; host->ShutdownGL();