mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Merge branch 'lightmaps2' of https://github.com/dpjudas/gzdoom into lightmaps2
This commit is contained in:
commit
1570ce9c90
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())
|
||||
{
|
||||
// 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());
|
||||
|
|
Loading…
Reference in a new issue