mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Print system SDL version on startup
This commit is contained in:
parent
5e61c23fd8
commit
6d39da37ca
1 changed files with 6 additions and 0 deletions
|
@ -73,12 +73,18 @@ GLimp_Init(void)
|
|||
Com_Printf("Couldn't init SDL video: %s.\n", SDL_GetError());
|
||||
return false;
|
||||
}
|
||||
|
||||
SDL_version version;
|
||||
|
||||
#if SDL_VERSION_ATLEAST(2, 0, 0)
|
||||
SDL_GetVersion(&version);
|
||||
const char* driverName = SDL_GetCurrentVideoDriver();
|
||||
#else
|
||||
char driverName[64];
|
||||
SDL_VideoDriverName(driverName, sizeof(driverName));
|
||||
version = *SDL_Linked_Version();
|
||||
#endif
|
||||
Com_Printf("SDL version is: %i.%i.%i\n", (int)version.major, (int)version.minor, (int)version.patch);
|
||||
Com_Printf("SDL video driver is \"%s\".\n", driverName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue