From f913859f88c5f032833f6eeb1c9c3066f4405a9a Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 2 Apr 2012 14:34:36 -0700 Subject: eglfs: delete screen on exit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Delete the screen when the integration gets deleted. The screen destructor destroys the window surface and terminates the egl connection. Note that the egl context is not destroyed since it is managed by QOpenGLContext. Change-Id: Ifb91c20edb6d5db684c37fb84d5ff40436f40925 Reviewed-by: Donald Carr Reviewed-by: Samuel Rødal --- src/plugins/platforms/eglfs/qeglfsintegration.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins/platforms/eglfs/qeglfsintegration.h') diff --git a/src/plugins/platforms/eglfs/qeglfsintegration.h b/src/plugins/platforms/eglfs/qeglfsintegration.h index 73866b6997..eea36a489d 100644 --- a/src/plugins/platforms/eglfs/qeglfsintegration.h +++ b/src/plugins/platforms/eglfs/qeglfsintegration.h @@ -55,6 +55,7 @@ class QEglFSIntegration : public QPlatformIntegration { public: QEglFSIntegration(); + ~QEglFSIntegration(); bool hasCapability(QPlatformIntegration::Capability cap) const; @@ -70,6 +71,7 @@ public: private: QPlatformFontDatabase *mFontDb; + QPlatformScreen *mScreen; }; QT_END_NAMESPACE -- cgit v1.2.3