From f5777742126d5fb025522d1528d7e12d7239a03f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lind?= Date: Wed, 24 Aug 2011 10:38:31 +0200 Subject: If the EGL_PLATFORM is not set, then set it Change-Id: I6c1b0ba757c64fc42faacd69d4e5d1df28faf7d1 Reviewed-on: http://codereview.qt.nokia.com/3472 Reviewed-by: Qt Sanity Bot Reviewed-by: Paul Olav Tvete --- .../wayland/gl_integration/wayland_egl/qwaylandeglintegration.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/platforms') diff --git a/src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandeglintegration.cpp b/src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandeglintegration.cpp index ab154017ec..6e72a45bcd 100644 --- a/src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandeglintegration.cpp +++ b/src/plugins/platforms/wayland/gl_integration/wayland_egl/qwaylandeglintegration.cpp @@ -62,6 +62,11 @@ QWaylandEglIntegration::~QWaylandEglIntegration() void QWaylandEglIntegration::initialize() { + QByteArray eglPlatform = qgetenv("EGL_PLATFORM"); + if (eglPlatform.isEmpty()) { + setenv("EGL_PLATFORM","wayland",true); + } + EGLint major,minor; m_eglDisplay = eglGetDisplay(m_waylandDisplay); if (m_eglDisplay == NULL) { -- cgit v1.2.3