mirror of https://github.com/aap/librw.git
fix
This commit is contained in:
parent
f47bd33a6a
commit
4541fe86f7
|
@ -144,8 +144,6 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
|
||||||
{
|
{
|
||||||
int32 maxDirectionals, maxLocals;
|
int32 maxDirectionals, maxLocals;
|
||||||
|
|
||||||
assert(atomic->world == this);
|
|
||||||
|
|
||||||
maxDirectionals = lightData->numDirectionals;
|
maxDirectionals = lightData->numDirectionals;
|
||||||
maxLocals = lightData->numLocals;
|
maxLocals = lightData->numLocals;
|
||||||
|
|
||||||
|
@ -172,6 +170,9 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(atomic->world != this)
|
||||||
|
return;
|
||||||
|
|
||||||
if(!normals)
|
if(!normals)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue