Fixed disappearing shadow bug each time a domain was automatically reloaded

This commit is contained in:
Olivier Prat 2017-11-16 10:49:59 +01:00
parent e574be7855
commit d2c28c3c21

View file

@ -147,7 +147,7 @@ LightStage::Index LightStage::addLight(const LightPointer& light) {
_descs.emplace_back(Desc());
} else {
assert(_descs[lightId].shadowId == INVALID_INDEX);
_descs.emplace(_descs.begin() + lightId, Desc());
_descs[lightId] = Desc();
}
// INsert the light and its index in the reverese map