mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 07:43:57 +02:00
Avoid crashing on missed pipelines
This commit is contained in:
parent
5cec928ad1
commit
2f20e58301
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue