mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 17:53:32 +02:00
Merge pull request #7779 from zzmp/fix/fst-crash
Avoid crashing on missed pipelines
This commit is contained in:
commit
e117f280cc
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