summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs/qeglfsintegration.h
diff options
context:
space:
mode:
authorGirish Ramakrishnan <girish.1.ramakrishnan@nokia.com>2012-04-02 14:34:36 -0700
committerQt by Nokia <qt-info@nokia.com>2012-04-03 10:45:02 +0200
commitf913859f88c5f032833f6eeb1c9c3066f4405a9a (patch)
tree0f965a886d806d9a9b4f48945811be931bffc858 /src/plugins/platforms/eglfs/qeglfsintegration.h
parentf578e5236359a88f3a89f529b54efac1df86ea76 (diff)
eglfs: delete screen on exit
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 <donald.carr@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/plugins/platforms/eglfs/qeglfsintegration.h')
-rw-r--r--src/plugins/platforms/eglfs/qeglfsintegration.h2
1 files changed, 2 insertions, 0 deletions
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