Merge pull request #7073 from flyinghead/fh/stop-audio-after-unload

Close the audio driver after unload_game to avoid threads deadlocks
This commit is contained in:
Twinaphex 2018-08-13 15:27:29 -07:00 committed by GitHub
commit 1b542a157d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -402,7 +402,6 @@ bool core_unload(void)
bool core_unload_game(void)
{
video_driver_free_hw_context();
audio_driver_stop();
video_driver_set_cached_frame_ptr(NULL);
@ -410,6 +409,8 @@ bool core_unload_game(void)
current_core.game_loaded = false;
audio_driver_stop();
return true;
}