- fixed: instead of checking gl_lights, better check Level->HasDynamicLights.
Especially in the thinker code this is needed for software rendering. Strictly speaking, the software renderer should do the same, but it checks r_dynlight in so many places deep in the logic where the level is not available.
This commit is contained in:
parent
26d00e14c7
commit
1097bd6c73
4 changed files with 5 additions and 5 deletions
|
|
@ -125,7 +125,7 @@ void FThinkerCollection::RunThinkers(FLevelLocals *Level)
|
|||
}
|
||||
} while (count != 0);
|
||||
|
||||
if (gl_lights)
|
||||
if (Level->HasDynamicLights)
|
||||
{
|
||||
for (auto light = Level->lights; light;)
|
||||
{
|
||||
|
|
@ -154,7 +154,7 @@ void FThinkerCollection::RunThinkers(FLevelLocals *Level)
|
|||
}
|
||||
} while (count != 0);
|
||||
|
||||
if (Level->lights && gl_lights)
|
||||
if (Level->lights && Level->HasDynamicLights)
|
||||
{
|
||||
// Also profile the internal dynamic lights, even though they are not implemented as thinkers.
|
||||
auto &prof = Profiles[NAME_InternalDynamicLight];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue