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:
Unknown W. Brackets 2013-06-20 23:13:00 -07:00
parent 4bb9e32f03
commit f6743316db

View file

@ -150,8 +150,8 @@ unsigned int WINAPI TheThread(void *)
shutdown:
_InterlockedExchange(&emuThreadReady, THREAD_SHUTDOWN);
host = nativeHost;
NativeShutdownGraphics();
host = nativeHost;
NativeShutdown();
host = oldHost;
host->ShutdownGL();