Merge branch 'master' into modern

This commit is contained in:
Christoph Oelckers 2018-06-26 09:28:23 +02:00
commit 8ac864b007
7 changed files with 23 additions and 7 deletions

View file

@ -764,7 +764,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();