mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 22:40:50 +00:00
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:
parent
d96a46dc1f
commit
eb259d0c02
1 changed files with 4 additions and 1 deletions
|
@ -191,7 +191,10 @@ VID_CheckChanges(void)
|
||||||
{
|
{
|
||||||
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();
|
if (!VID_LoadRefresh())
|
||||||
|
{
|
||||||
|
Com_Error(ERR_FATAL, "Couldn't even load the gl1 fallback rendering backend!\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue