SDL: Fix mismatch between Init and Quit

From 27ee8c8e14300054d03b4e53ac789df0e57d3c77 Mon Sep 17 00:00:00 2001
From: Jasper Hugunin <[EMAIL REDACTED]>
Date: Fri, 28 Oct 2022 22:35:16 -0700
Subject: [PATCH] Fix mismatch between Init and Quit

Init says that audio implies events (line 195), Quit was missing the implication.
---
 src/SDL.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/SDL.c b/src/SDL.c
index 93f7a7f6de17..67db48c3bf3d 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();
         }