aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp3
-rw-r--r--src/quick/scenegraph/qsgcontext.cpp3
-rw-r--r--src/quick/scenegraph/qsgdefaultrendercontext.cpp3
3 files changed, 4 insertions, 5 deletions
diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp
index 921071e32e..d9a298f855 100644
--- a/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp
+++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarecontext.cpp
@@ -134,7 +134,8 @@ void QSGSoftwareRenderContext::initializeIfNeeded()
void QSGSoftwareRenderContext::invalidate()
{
- QSGRenderContext::invalidate();
+ m_sg->renderContextInvalidated(this);
+ emit invalidated();
}
QSGTexture *QSGSoftwareRenderContext::createTexture(const QImage &image, uint flags) const
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index 0009de8c67..688fc7db08 100644
--- a/src/quick/scenegraph/qsgcontext.cpp
+++ b/src/quick/scenegraph/qsgcontext.cpp
@@ -343,7 +343,6 @@ QSGRenderContext::QSGRenderContext(QSGContext *context)
QSGRenderContext::~QSGRenderContext()
{
- invalidate();
}
void QSGRenderContext::initialize(void *context)
@@ -353,8 +352,6 @@ void QSGRenderContext::initialize(void *context)
void QSGRenderContext::invalidate()
{
- m_sg->renderContextInvalidated(this);
- emit invalidated();
}
void QSGRenderContext::endSync()
diff --git a/src/quick/scenegraph/qsgdefaultrendercontext.cpp b/src/quick/scenegraph/qsgdefaultrendercontext.cpp
index 870c0488c3..4fcc81fb18 100644
--- a/src/quick/scenegraph/qsgdefaultrendercontext.cpp
+++ b/src/quick/scenegraph/qsgdefaultrendercontext.cpp
@@ -163,7 +163,8 @@ void QSGDefaultRenderContext::invalidate()
m_gl->setProperty(QSG_RENDERCONTEXT_PROPERTY, QVariant());
m_gl = 0;
- QSGRenderContext::invalidate();
+ m_sg->renderContextInvalidated(this);
+ emit invalidated();
}
static QBasicMutex qsg_framerender_mutex;