summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/qnx/qqnxglcontext.cpp5
-rw-r--r--src/plugins/platforms/qnx/qqnxglcontext.h1
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/platforms/qnx/qqnxglcontext.cpp b/src/plugins/platforms/qnx/qqnxglcontext.cpp
index 934e6afedf..0b333ea728 100644
--- a/src/plugins/platforms/qnx/qqnxglcontext.cpp
+++ b/src/plugins/platforms/qnx/qqnxglcontext.cpp
@@ -317,8 +317,7 @@ void QQnxGLContext::createSurface(QPlatformSurface *surface)
// buffers of the proper size
if (!platformWindow->hasBuffers()) {
platformWindow->setPlatformOpenGLContext(this);
- m_surfaceSize = platformWindow->geometry().size();
- platformWindow->setBufferSize(m_surfaceSize);
+ platformWindow->setBufferSize(platformWindow->geometry().size());
}
// Obtain the native handle for our window
@@ -351,6 +350,8 @@ void QQnxGLContext::destroySurface()
qFatal("QQNX: failed to destroy EGL surface, err=%d", eglGetError());
}
}
+
+ m_eglSurface = EGL_NO_SURFACE;
}
QT_END_NAMESPACE
diff --git a/src/plugins/platforms/qnx/qqnxglcontext.h b/src/plugins/platforms/qnx/qqnxglcontext.h
index 8b587e7eb8..219c48f8b3 100644
--- a/src/plugins/platforms/qnx/qqnxglcontext.h
+++ b/src/plugins/platforms/qnx/qqnxglcontext.h
@@ -83,7 +83,6 @@ private:
EGLConfig m_eglConfig;
EGLContext m_eglContext;
EGLSurface m_eglSurface;
- QSize m_surfaceSize;
static EGLint *contextAttrs();
};