diff options
author | Elena Zaretskaya <sweetiebrier@yandex.ru> | 2019-02-14 09:49:33 -0500 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-02-27 15:30:40 +0000 |
commit | ca991ee22d3509f8f54ee26d4c30d45319428c8f (patch) | |
tree | daadbbf9837d15005b38e3530133c0a478debeba /src/plugins/platforms/eglfs/api/qeglfswindow_p.h | |
parent | 49ef377349ba4dae840c2d5caa36e2d516707baa (diff) |
Segfault when the exiting the application under platform eglfs
If you run an application under eglfs, it falls with segfault on the
exit. For example, examples/gui/analogclock,
examples/widgets/widgets/analogclock, examples/opengl/cube,
examples/opengl/qopenglwidget, etc. (I have added the function
keyPressEvent to exit by qApp->quit(), if needed).
It isn't appear in applications using QQuickView or QGLWindow.
This is because QCoreApplication destructor, where the variable self = 0
(therefore, qGuiApp = 0), is called before than
QOpenGLVertexArrayObject::destroy(), where qGuiApp is accessed
(qGuiApp->thread()).
Task-number: QTBUG-73824
Change-Id: I1dc55d5e811bfe8a8ea2178752e8771f8644d356
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/eglfs/api/qeglfswindow_p.h')
-rw-r--r-- | src/plugins/platforms/eglfs/api/qeglfswindow_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/eglfs/api/qeglfswindow_p.h b/src/plugins/platforms/eglfs/api/qeglfswindow_p.h index c61f04f569..b0091e2a62 100644 --- a/src/plugins/platforms/eglfs/api/qeglfswindow_p.h +++ b/src/plugins/platforms/eglfs/api/qeglfswindow_p.h @@ -116,6 +116,7 @@ public: protected: #ifndef QT_NO_OPENGL QOpenGLCompositorBackingStore *m_backingStore; + QOpenGLContext *m_rasterCompositingContext; #endif bool m_raster; WId m_winId; |