aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2019-10-01 10:44:31 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2019-10-07 09:14:40 +0200
commit8e49f5060632451f6b2c4cb3597aed7308490f39 (patch)
tree6e1c5a63e975d8fa06da45fea7c350784fc632a9 /src
parentedf36111860c78cd30b00e8fa9f8e4fbf8967cd1 (diff)
OpenVG: Fix emitting of sceneGraphInitialized and -Invalidated
These QQuickWindow signals were not emitted when using the OpenVG backed. The reason was that the OpenVG scenegraph context, unlike other backend contexts, did not signal when it was initialized and invalidated. Fixes: QTBUG-76806 Change-Id: I2299b253464b71d4ca9c54c85359c6bcb0718d43 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/scenegraph/openvg/qsgopenvgcontext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/scenegraph/openvg/qsgopenvgcontext.cpp b/src/plugins/scenegraph/openvg/qsgopenvgcontext.cpp
index 76ebb7c4ee..e4acda1ffd 100644
--- a/src/plugins/scenegraph/openvg/qsgopenvgcontext.cpp
+++ b/src/plugins/scenegraph/openvg/qsgopenvgcontext.cpp
@@ -72,6 +72,7 @@ void QSGOpenVGRenderContext::initialize(void *context)
{
m_vgContext = static_cast<QOpenVGContext*>(context);
QSGRenderContext::initialize(context);
+ emit initialized();
}
void QSGOpenVGRenderContext::invalidate()
@@ -80,6 +81,7 @@ void QSGOpenVGRenderContext::invalidate()
delete m_glyphCacheManager;
m_glyphCacheManager = nullptr;
QSGRenderContext::invalidate();
+ emit invalidated();
}
void QSGOpenVGRenderContext::renderNextFrame(QSGRenderer *renderer, uint fboId)