summaryrefslogtreecommitdiffstats
path: root/src/render/framegraph
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/framegraph')
-rw-r--r--src/render/framegraph/qframegraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/render/framegraph/qframegraph.cpp b/src/render/framegraph/qframegraph.cpp
index b8357f396..a6193a4c9 100644
--- a/src/render/framegraph/qframegraph.cpp
+++ b/src/render/framegraph/qframegraph.cpp
@@ -131,7 +131,7 @@ void QFrameGraph::setActiveFrameGraph(QFrameGraphNode *activeFrameGraph)
Q_D(QFrameGraph);
if (activeFrameGraph != d->m_activeFrameGraph) {
- if (!activeFrameGraph->parent())
+ if (activeFrameGraph != Q_NULLPTR && !activeFrameGraph->parent())
activeFrameGraph->setParent(this);
d->m_activeFrameGraph = activeFrameGraph;