Commit 27ee8c8e14300054d03b4e53ac789df0e57d3c77

Jasper Hugunin 2022-10-28T22:35:16

Fix mismatch between Init and Quit Init says that audio implies events (line 195), Quit was missing the implication.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/SDL.c b/src/SDL.c
index 93f7a7f..67db48c 100644
--- a/src/SDL.c
+++ b/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();
         }