Skip to content

Commit

Permalink
fix: cashed on onTextureChanged
Browse files Browse the repository at this point in the history
invalid BlitTextureProvider pointer
  • Loading branch information
kegechen committed Aug 19, 2024
1 parent 0916654 commit c2a17b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/private/dquickbackdropblitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ QSGNode *DQuickBackdropBlitter::updatePaintNode(QSGNode *oldNode, QQuickItem::Up

node->setContentItem(d->container);
node->setTextureChangedCallback(onTextureChanged, d);
connect(this, &QObject::destroyed, this, [node](){
// fix callback crashed...
node->setTextureChangedCallback(nullptr, nullptr);
});
node->resize(size());
onTextureChanged(node, d);

Expand Down

0 comments on commit c2a17b4

Please sign in to comment.