mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-27 06:42:23 +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,11 +177,18 @@ VID_CheckChanges(void)
|
|||
cls.disable_screen = true;
|
||||
|
||||
// Proceed to reboot the refresher
|
||||
if(!VID_LoadRefresh() && (strcmp(vid_renderer->string, "gl1") != 0))
|
||||
if(!VID_LoadRefresh())
|
||||
{
|
||||
Com_Printf("\n ... trying again with standard OpenGL1.x renderer ... \n\n");
|
||||
Cvar_Set("vid_renderer", "gl1");
|
||||
VID_LoadRefresh();
|
||||
if (strcmp(vid_renderer->string, "gl1") != 0)
|
||||
{
|
||||
Com_Printf("\n ... trying again with standard OpenGL1.x renderer ... \n\n");
|
||||
Cvar_Set("vid_renderer", "gl1");
|
||||
VID_LoadRefresh();
|
||||
}
|
||||
else
|
||||
{
|
||||
Com_Error(ERR_FATAL, "Couldn't load a rendering backend!\n");
|
||||
}
|
||||
}
|
||||
cls.disable_screen = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue