summaryrefslogtreecommitdiffstats
path: root/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@jollamobile.com>2014-05-21 13:02:03 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-21 12:33:11 +0200
commit813af13f665de9655f74830a99ab7ed45ebc9865 (patch)
tree5116de66bcd62080f04c2ccbf36dd32dceec68a6 /src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
parent9550e25c2b0dc152b378635f9515a04a5234672b (diff)
Don't create an invalidated surface when not needed
After invalidateSurface() is called we don't want to recreate the EGLSurface on setGeometry() until makeCurrent is called Change-Id: Ide10ecf3bff40a01fa1ed249986a631c77c2bf63 Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp')
-rw-r--r--src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
index 5e62c9fa8..dffd812c7 100644
--- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
+++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp
@@ -114,7 +114,7 @@ bool QWaylandGLContext::makeCurrent(QPlatformSurface *surface)
EGLSurface eglSurface = window->eglSurface();
if (!eglSurface) {
- window->create();
+ window->updateSurface(true);
eglSurface = window->eglSurface();
}
if (!eglMakeCurrent(m_eglDisplay, eglSurface, eglSurface, m_context)) {