From d299576eb0ee6330a82523b2757f76f7afc0216b Mon Sep 17 00:00:00 2001 From: drfrag Date: Wed, 21 Aug 2019 14:17:59 +0200 Subject: [PATCH] - Fixed vanilla light mode being available for GL2 when it's not supported without shaders. --- src/gl/compatibility/gl_20.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gl/compatibility/gl_20.cpp b/src/gl/compatibility/gl_20.cpp index ffcc0ccd1..83a64a327 100644 --- a/src/gl/compatibility/gl_20.cpp +++ b/src/gl/compatibility/gl_20.cpp @@ -73,7 +73,7 @@ void gl_PatchMenu() for(int i = (*opt)->mValues.Size()-1; i>=0; i--) { // Delete 'Doom' lighting mode - if ((*opt)->mValues[i].Value == 2.0 || (*opt)->mValues[i].Value == 8.0) + if ((*opt)->mValues[i].Value == 2.0 || (*opt)->mValues[i].Value == 8.0 || (*opt)->mValues[i].Value == 16.0) { (*opt)->mValues.Delete(i); } @@ -94,7 +94,7 @@ void gl_PatchMenu() } // disable features that don't work without shaders. - if (gl_lightmode == 2 || gl_lightmode == 8) gl_lightmode = 3; + if (gl_lightmode == 2 || gl_lightmode == 8 || gl_lightmode == 16) gl_lightmode = 3; if (gl_fogmode == 2) gl_fogmode = 1; // remove more unsupported stuff like postprocessing options.