mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-16 09:31:14 +00:00
- Fixed vanilla light mode being available for GL2 when it's not supported without shaders.
This commit is contained in:
parent
45abf1a5c9
commit
d299576eb0
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue