add a comment to SDL_InitSubSystem explaining its refcounting behavior
authorAlfred Reynolds <alfred@valvesoftware.com>
Thu, 03 Jul 2014 10:22:26 -0700
changeset 8970c566c1634307
parent 8969 7fb90df60b99
child 8971 c30e826412d1
add a comment to SDL_InitSubSystem explaining its refcounting behavior
include/SDL.h
     1.1 --- a/include/SDL.h	Thu Jul 03 10:22:12 2014 -0700
     1.2 +++ b/include/SDL.h	Thu Jul 03 10:22:26 2014 -0700
     1.3 @@ -130,6 +130,12 @@
     1.4  
     1.5  /**
     1.6   *  This function initializes specific SDL subsystems
     1.7 + *
     1.8 + *  Subsystem initialization is ref-counted, you must call
     1.9 + *  SDL_QuitSubSystem for each SDL_InitSubSystem to correctly
    1.10 + *  shutdown a subsystem manually (or call SDL_Quit to force shutdown).
    1.11 + *  If a subsystem is already loaded then this call will
    1.12 + *  increase the ref-count and return.
    1.13   */
    1.14  extern DECLSPEC int SDLCALL SDL_InitSubSystem(Uint32 flags);
    1.15