Exit game if loading fallback renderer failed

If loading gl3 fails, the game tries gl1 instead.
If that fails as well, the game should quit. Now it does.
This commit is contained in:
Daniel Gibson 2018-07-10 21:43:54 +02:00
parent d96a46dc1f
commit eb259d0c02

View file

@ -191,7 +191,10 @@ VID_CheckChanges(void)
{
Com_Printf("\n ... trying again with standard OpenGL1.x renderer ... \n\n");
Cvar_Set("vid_renderer", "gl1");
VID_LoadRefresh();
if (!VID_LoadRefresh())
{
Com_Error(ERR_FATAL, "Couldn't even load the gl1 fallback rendering backend!\n");
}
}
else
{