mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-30 08:20:51 +00:00
Exit game if loading renderer fails
it's no fun without a window, even if sound works you don't have input..
This commit is contained in:
parent
aa5f63e0dc
commit
36ef1e6bb8
1 changed files with 11 additions and 4 deletions
|
@ -177,12 +177,19 @@ VID_CheckChanges(void)
|
||||||
cls.disable_screen = true;
|
cls.disable_screen = true;
|
||||||
|
|
||||||
// Proceed to reboot the refresher
|
// Proceed to reboot the refresher
|
||||||
if(!VID_LoadRefresh() && (strcmp(vid_renderer->string, "gl1") != 0))
|
if(!VID_LoadRefresh())
|
||||||
|
{
|
||||||
|
if (strcmp(vid_renderer->string, "gl1") != 0)
|
||||||
{
|
{
|
||||||
Com_Printf("\n ... trying again with standard OpenGL1.x renderer ... \n\n");
|
Com_Printf("\n ... trying again with standard OpenGL1.x renderer ... \n\n");
|
||||||
Cvar_Set("vid_renderer", "gl1");
|
Cvar_Set("vid_renderer", "gl1");
|
||||||
VID_LoadRefresh();
|
VID_LoadRefresh();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Com_Error(ERR_FATAL, "Couldn't load a rendering backend!\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
cls.disable_screen = false;
|
cls.disable_screen = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue