- Defer SDL subsystem initialization since it seems to cause conflicts with GUI toolkits on some systems.

This commit is contained in:
Braden Obrzut 2015-02-02 19:36:08 -05:00
commit 8e1b1aa201
4 changed files with 23 additions and 6 deletions

View file

@ -66,10 +66,20 @@ void I_ShutdownGraphics ()
}
if (Video)
delete Video, Video = NULL;
SDL_QuitSubSystem (SDL_INIT_VIDEO);
}
void I_InitGraphics ()
{
if (SDL_InitSubSystem (SDL_INIT_VIDEO) < 0)
{
I_FatalError ("Could not initialize SDL video:\n%s\n", SDL_GetError());
return;
}
Printf("Using video driver %s\n", SDL_GetCurrentVideoDriver());
UCVarValue val;
val.Bool = !!Args->CheckParm ("-devparm");