mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-12 15:15:46 +00:00
Fix light probes not working for maps having no dynamic lights at all
This commit is contained in:
parent
5dec391c8c
commit
d197d19122
1 changed files with 2 additions and 2 deletions
|
@ -383,9 +383,9 @@ void D_Render(std::function<void()> action, bool interpolate)
|
||||||
for (auto Level : AllLevels())
|
for (auto Level : AllLevels())
|
||||||
{
|
{
|
||||||
// Check for the presence of dynamic lights at the start of the frame once.
|
// 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.
|
else Level->HasDynamicLights = false; // lights are off so effectively we have none.
|
||||||
if (interpolate) Level->interpolator.DoInterpolations(I_GetTimeFrac());
|
if (interpolate) Level->interpolator.DoInterpolations(I_GetTimeFrac());
|
||||||
|
|
Loading…
Reference in a new issue