Fix mismatch between Init and Quit
Init says that audio implies events (line 195), Quit was missing the implication.main
parent
33a430056f
commit
27ee8c8e14
|
@ -407,6 +407,9 @@ SDL_QuitSubSystem(Uint32 flags)
|
||||||
|
|
||||||
#if !SDL_AUDIO_DISABLED
|
#if !SDL_AUDIO_DISABLED
|
||||||
if ((flags & SDL_INIT_AUDIO)) {
|
if ((flags & SDL_INIT_AUDIO)) {
|
||||||
|
/* audio implies events */
|
||||||
|
flags |= SDL_INIT_EVENTS;
|
||||||
|
|
||||||
if (SDL_PrivateShouldQuitSubsystem(SDL_INIT_AUDIO)) {
|
if (SDL_PrivateShouldQuitSubsystem(SDL_INIT_AUDIO)) {
|
||||||
SDL_AudioQuit();
|
SDL_AudioQuit();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue