diff options
author | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2019-10-01 10:44:31 +0200 |
---|---|---|
committer | Eirik Aavitsland <eirik.aavitsland@qt.io> | 2019-10-07 09:14:40 +0200 |
commit | 8e49f5060632451f6b2c4cb3597aed7308490f39 (patch) | |
tree | 6e1c5a63e975d8fa06da45fea7c350784fc632a9 | |
parent | edf36111860c78cd30b00e8fa9f8e4fbf8967cd1 (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>
-rw-r--r-- | src/plugins/scenegraph/openvg/qsgopenvgcontext.cpp | 2 |
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) |