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:
parent
2aab5da496
commit
f577774212
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user