Skip to content

Commit

Permalink
add a comment to SDL_InitSubSystem explaining its refcounting behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred-valve committed Jul 3, 2014
1 parent 2748e28 commit 321af03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/SDL.h
Expand Up @@ -130,6 +130,12 @@ extern DECLSPEC int SDLCALL SDL_Init(Uint32 flags);

/**
* This function initializes specific SDL subsystems
*
* Subsystem initialization is ref-counted, you must call
* SDL_QuitSubSystem for each SDL_InitSubSystem to correctly
* shutdown a subsystem manually (or call SDL_Quit to force shutdown).
* If a subsystem is already loaded then this call will
* increase the ref-count and return.
*/
extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags);

Expand Down

0 comments on commit 321af03

Please sign in to comment.