[platforms/x11] Fix init of EGL/X11

Incorrect variable naming.
This commit is contained in:
Martin Gräßlin 2016-07-21 09:42:01 +02:00
parent 56ce6689fd
commit ace506b5ca

View file

@ -176,7 +176,7 @@ bool EglOnXBackend::initRenderingContext()
// Use eglGetPlatformDisplayEXT() to get the display pointer // Use eglGetPlatformDisplayEXT() to get the display pointer
// if the implementation supports it. // if the implementation supports it.
if (display == EGL_NO_DISPLAY) { if (dpy == EGL_NO_DISPLAY) {
const bool havePlatformBase = hasClientExtension(QByteArrayLiteral("EGL_EXT_platform_base")); const bool havePlatformBase = hasClientExtension(QByteArrayLiteral("EGL_EXT_platform_base"));
setHavePlatformBase(havePlatformBase); setHavePlatformBase(havePlatformBase);
if (havePlatformBase) { if (havePlatformBase) {