Fix shadow leaking scene items

This commit is contained in:
Zach Pomerantz 2016-01-18 18:43:01 -08:00
parent 1b36d56b7a
commit ff425f40ae

View file

@ -235,6 +235,9 @@ void PipelineSortShapes::run(const SceneContextPointer& sceneContext, const Rend
}
void DepthSortShapes::run(const SceneContextPointer& sceneContext, const RenderContextPointer& renderContext, const ShapesIDsBounds& inShapes, ShapesIDsBounds& outShapes) {
outShapes.clear();
outShapes.reserve(inShapes.size());
for (auto& pipeline : inShapes) {
auto& inItems = pipeline.second;
auto outItems = outShapes.find(pipeline.first);