mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 10:37:35 +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) {
|
for (auto& pipelineKey : sortedPipelines) {
|
||||||
auto& bucket = sortedShapes[pipelineKey];
|
auto& bucket = sortedShapes[pipelineKey];
|
||||||
args->_pipeline = shapeContext->pickPipeline(args, pipelineKey);
|
args->_pipeline = shapeContext->pickPipeline(args, pipelineKey);
|
||||||
|
if (!args->_pipeline) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
for (auto& item : bucket) {
|
for (auto& item : bucket) {
|
||||||
item.render(args);
|
item.render(args);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue