diff options
author | Giulio Camuffo <giulio.camuffo@jollamobile.com> | 2014-04-16 11:02:30 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-22 09:14:32 +0200 |
commit | 48126502434c0c966a744e113b4a420656d8c206 (patch) | |
tree | 93d33a1d738c3b9b0cd264766e8e356b515485c5 /src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | |
parent | 17b37f7e907d10d028b70f43b8afc80a384519a4 (diff) |
Egl surfaces can now be invalidated, make sure to recreate them
Change-Id: Ifae97cc4538989bc45641bda5ce2ec8a7d8980ce
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
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.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp index e7a4b5a2b..04cfbe6b5 100644 --- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp +++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp @@ -113,6 +113,10 @@ bool QWaylandGLContext::makeCurrent(QPlatformSurface *surface) window->setCanResize(false); EGLSurface eglSurface = window->eglSurface(); + if (!eglSurface) { + window->create(); + eglSurface = window->eglSurface(); + } if (!eglMakeCurrent(m_eglDisplay, eglSurface, eglSurface, m_context)) { qWarning("QEGLPlatformContext::makeCurrent: eglError: %x, this: %p \n", eglGetError(), this); return false; |