aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@jollamobile.com>2013-12-05 12:53:09 -0600
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-10 17:09:29 +0100
commite6a417692652d925c6baed33d153f86d78244134 (patch)
tree51bb8d4d70d40c9343bdc936c9b9dcf2ccc75d5e /src/quick/scenegraph
parent29b6d2e45c7434fccf2e6878630e62d5dcce38db (diff)
Mark item as dirty when nodes are cleaned
Otherwise they may not be recreated in the correct configuration. Change-Id: Ib103b1874d7f104680eae7b6f43f722b5fa93bf2 Done-with: Aaron Kennedy <aaron.kennedy@jollamobile.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/quick/scenegraph')
-rw-r--r--src/quick/scenegraph/qsgthreadedrenderloop.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgthreadedrenderloop.cpp b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
index 2759d82e77..9426db70d0 100644
--- a/src/quick/scenegraph/qsgthreadedrenderloop.cpp
+++ b/src/quick/scenegraph/qsgthreadedrenderloop.cpp
@@ -402,6 +402,7 @@ bool QSGRenderThread::event(QEvent *e)
case WM_TryRelease: {
QSG_RT_DEBUG("WM_TryRelease");
mutex.lock();
+ wm->m_locked = true;
WMTryReleaseEvent *wme = static_cast<WMTryReleaseEvent *>(e);
if (!window || wme->inDestructor) {
QSG_RT_DEBUG(" - setting exit flag and invalidating GL");
@@ -413,6 +414,7 @@ bool QSGRenderThread::event(QEvent *e)
QSG_RT_DEBUG(" - not releasing anything because we have active windows...");
}
waitCondition.wakeOne();
+ wm->m_locked = false;
mutex.unlock();
return true;
}