mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-25 04:28:29 +00:00
Removed redundant subystem quit calls
SDL_Quit() quits everything
This commit is contained in:
@@ -2506,15 +2506,6 @@ void SDLTest_CommonQuit(SDLTest_CommonState *state)
|
|||||||
}
|
}
|
||||||
SDL_free(state->windows);
|
SDL_free(state->windows);
|
||||||
}
|
}
|
||||||
if (state->flags & SDL_INIT_CAMERA) {
|
|
||||||
SDL_QuitSubSystem(SDL_INIT_CAMERA);
|
|
||||||
}
|
|
||||||
if (state->flags & SDL_INIT_VIDEO) {
|
|
||||||
SDL_QuitSubSystem(SDL_INIT_VIDEO);
|
|
||||||
}
|
|
||||||
if (state->flags & SDL_INIT_AUDIO) {
|
|
||||||
SDL_QuitSubSystem(SDL_INIT_AUDIO);
|
|
||||||
}
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
SDLTest_CommonDestroyState(state);
|
SDLTest_CommonDestroyState(state);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user