From d197d19122921f3aa512a71819c9b81de855778f Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 13 Nov 2021 05:09:25 +0100 Subject: [PATCH] Fix light probes not working for maps having no dynamic lights at all --- src/d_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/d_main.cpp b/src/d_main.cpp index efa8ca878..11ccc6cab 100644 --- a/src/d_main.cpp +++ b/src/d_main.cpp @@ -383,9 +383,9 @@ void D_Render(std::function action, bool interpolate) for (auto Level : AllLevels()) { // Check for the presence of dynamic lights at the start of the frame once. - if ((gl_lights && vid_rendermode == 4) || (r_dynlights && vid_rendermode != 4)) + if ((gl_lights && vid_rendermode == 4) || (r_dynlights && vid_rendermode != 4) || Level->LightProbes.Size() > 0) { - Level->HasDynamicLights = !!Level->lights; + Level->HasDynamicLights = Level->lights || Level->LightProbes.Size() > 0; } else Level->HasDynamicLights = false; // lights are off so effectively we have none. if (interpolate) Level->interpolator.DoInterpolations(I_GetTimeFrac());