Behaviour of SDL_Init when called more than once?

Hey all,

Is the behaviour of SDL_Init and SDL_InitSubSystem defined when called
multiple times?

Is it reference counted so if called twice, it won’t actually be quit
until the second SDL_Quit(), or does it just abort silently? Or does it
just happen to work now and may explode later?

Thanks–

End of Rant.

Jimmy
JimmysWorld.org
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020309/8b69a5fa/attachment.pgp

Hey all,

Is the behaviour of SDL_Init and SDL_InitSubSystem defined when called
multiple times?

Yes, the second call is ignored. SDL_Quit() works normally.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment