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 <qt_sanity_bot@ovi.com>
Reviewed-by: Paul Olav Tvete <paul.tvete@nokia.com>
This commit is contained in:
Jørgen Lind 2011-08-24 10:38:31 +02:00 committed by Paul Olav Tvete
parent 2aab5da496
commit f577774212

View File

@ -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) {