Browse Source

Fix mismatch between Init and Quit

Init says that audio implies events (line 195), Quit was missing the implication.
Jasper Hugunin 2 years ago
parent
commit
27ee8c8e14
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/SDL.c

+ 3 - 0
src/SDL.c

@@ -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();
         }