From 813af13f665de9655f74830a99ab7ed45ebc9865 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Wed, 21 May 2014 13:02:03 +0300 Subject: 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 --- src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp') 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)) { -- cgit v1.2.3