mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 23:11:58 +00:00
- correct checks for HasDynamicLights
This commit is contained in:
parent
e402babfc0
commit
0ed1077f29
2 changed files with 2 additions and 1 deletions
|
@ -786,7 +786,7 @@ void D_Display ()
|
|||
//
|
||||
|
||||
// Check for the presence of dynamic lights at the start of the frame once.
|
||||
if (gl_lights)
|
||||
if ((gl_lights && vid_rendermode == 4) || (r_dynlights && vid_rendermode != 4))
|
||||
{
|
||||
TThinkerIterator<ADynamicLight> it(STAT_DLIGHT);
|
||||
level.HasDynamicLights = !!it.Next();
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include "actor.h"
|
||||
#include "cycler.h"
|
||||
|
||||
EXTERN_CVAR(Bool, r_dynlights)
|
||||
EXTERN_CVAR(Bool, gl_lights)
|
||||
EXTERN_CVAR(Bool, gl_attachedlights)
|
||||
|
||||
|
|
Loading…
Reference in a new issue