Ubuntu Manpages

SDL_QuitSubSystem

Shut down specific SDL subsystems.

#include <SDL3/SDL_init.h>
void SDL_QuitSubSystem(SDL_InitFlags flags);

You still need to call SDL_Quit() even if you close all open subsystems with SDL_QuitSubSystem().

any of the flags used by SDL_Init(); see SDL_Init for details.

This function is not thread safe.

This function is available since SDL 3.2.0.

SDL_InitSubSystem(3), SDL_Quit(3)