Fix mismatch between Init and Quit

Init says that audio implies events (line 195), Quit was missing the implication.
This commit is contained in:
Jasper Hugunin 2022-10-28 22:35:16 -07:00 committed by Sam Lantinga
parent 33a430056f
commit 27ee8c8e14
1 changed files with 3 additions and 0 deletions

View File

@ -407,6 +407,9 @@ SDL_QuitSubSystem(Uint32 flags)
#if !SDL_AUDIO_DISABLED
if ((flags & SDL_INIT_AUDIO)) {
/* audio implies events */
flags |= SDL_INIT_EVENTS;
if (SDL_PrivateShouldQuitSubsystem(SDL_INIT_AUDIO)) {
SDL_AudioQuit();
}