Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/private/dquickbehindwindowblur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Q_DECL_HIDDEN DSGBlendNode : public QSGRenderNode
}

bool m_isRestore = false;
DQuickBehindWindowBlur *m_item = nullptr;
QPointer<DQuickBehindWindowBlur> m_item = nullptr;
QMatrix4x4 m_lastMatrix;
QRegion m_lastClip;
qreal m_lastRadius = -1;
Expand All @@ -47,7 +47,10 @@ DSGBlendNode::DSGBlendNode(bool restore)

void DSGBlendNode::render(const QSGRenderNode::RenderState *state)
{
Q_ASSERT(m_item);
// m_item may become invalid when the referred blur behind item get destroyed by a Loader.
// Give up rendering in this case.
if (!m_item)
return;

if (m_isRestore)
return;
Expand Down