This commit is contained in:
aap 2020-04-19 15:29:11 +02:00
parent f47bd33a6a
commit 4541fe86f7

View File

@ -144,8 +144,6 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
{
int32 maxDirectionals, maxLocals;
assert(atomic->world == this);
maxDirectionals = lightData->numDirectionals;
maxLocals = lightData->numLocals;
@ -172,6 +170,9 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
}
}
if(atomic->world != this)
return;
if(!normals)
return;