From eb259d0c02d4e914f81a14a4280a6b3a18410d33 Mon Sep 17 00:00:00 2001 From: Daniel Gibson Date: Tue, 10 Jul 2018 21:43:54 +0200 Subject: [PATCH] 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. --- src/backends/generic/vid.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backends/generic/vid.c b/src/backends/generic/vid.c index 52a95e6c..5c970384 100644 --- a/src/backends/generic/vid.c +++ b/src/backends/generic/vid.c @@ -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 {