From 8454e0969411bd66dafe474ce2fc4dcc385f4ff1 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Tue, 12 Sep 2017 14:32:29 -0400 Subject: [PATCH] - fixed: I was using the wrong check to determine which renderer was in use. Ooops. It now checks for the actual (active) renderer rather than the state of vid_glswfb --- src/gl/system/gl_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/system/gl_interface.cpp b/src/gl/system/gl_interface.cpp index 943a01b5a..b2b4ea9ae 100644 --- a/src/gl/system/gl_interface.cpp +++ b/src/gl/system/gl_interface.cpp @@ -43,7 +43,7 @@ static TArray m_Extensions; RenderContext gl; EXTERN_CVAR(Bool, gl_legacy_mode) -EXTERN_CVAR(Bool, vid_glswfb) +extern int currentrenderer; //========================================================================== // @@ -209,7 +209,7 @@ void gl_LoadExtensions() // The minimum requirement for the modern render path is GL 3.3. // Although some GL 3.1 or 3.2 solutions may theoretically work they are usually too broken or too slow. // unless, of course, we're simply using this as a software backend... - if (gl_version < 3.3f && (!vid_glswfb || gl_version < 3.0f)) + if ((gl_version < 3.3f && (currentrenderer==1)) || gl_version < 3.0f) { gl.legacyMode = true; gl.lightmethod = LM_LEGACY;