- Defer SDL subsystem initialization since it seems to cause conflicts with GUI toolkits on some systems.
This commit is contained in:
parent
dc6b45804d
commit
8e1b1aa201
4 changed files with 23 additions and 6 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue