Log the SDL version

This commit is contained in:
dhewg 2012-07-20 00:26:16 +02:00
parent 264fdfa10e
commit 368bf2819c

View file

@ -2765,7 +2765,14 @@ void idCommonLocal::Init( int argc, char **argv ) {
idCVar::RegisterStaticVars();
// print engine version
Printf( "%s\n", version.string );
#if SDL_VERSION_ATLEAST(2, 0, 0)
SDL_version sdlv;
SDL_GetVersion(&sdlv);
#else
SDL_version sdlv = *SDL_Linked_Version();
#endif
Printf( "%s using SDL v%u.%u.%u\n",
version.string, sdlv.major, sdlv.minor, sdlv.patch );
// initialize key input/binding, done early so bind command exists
idKeyInput::Init();