Merge pull request #7779 from zzmp/fix/fst-crash

Avoid crashing on missed pipelines
This commit is contained in:
Brad Hefta-Gaub 2016-05-02 10:12:17 -07:00
commit e117f280cc

View file

@ -105,6 +105,9 @@ void render::renderStateSortShapes(const SceneContextPointer& sceneContext, cons
for (auto& pipelineKey : sortedPipelines) {
auto& bucket = sortedShapes[pipelineKey];
args->_pipeline = shapeContext->pickPipeline(args, pipelineKey);
if (!args->_pipeline) {
continue;
}
for (auto& item : bucket) {
item.render(args);
}