Avoid crashing on missed pipelines

This commit is contained in:
Zach Pomerantz 2016-04-27 19:53:28 -07:00
parent 5cec928ad1
commit 2f20e58301

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);
}