fix compile of qt without egl available
move the dpy to the place where it is used inside the egl ifdef guard fixes compilation on old distros not having egl Change-Id: I7eebe5305f3a584c0c5da2ea7b9099fdd994249d Reviewed-by: David Faure <david.faure@kdab.com>bb10
parent
ecf11d62fc
commit
fe4ebf1269
|
|
@ -278,7 +278,6 @@ QXcbConnection::QXcbConnection(QXcbNativeInterface *nativeInterface, bool canGra
|
|||
m_xlib_display = dpy;
|
||||
}
|
||||
#else
|
||||
EGLNativeDisplayType dpy = EGL_DEFAULT_DISPLAY;
|
||||
m_connection = xcb_connect(m_displayName.constData(), &m_primaryScreen);
|
||||
#endif //XCB_USE_XLIB
|
||||
|
||||
|
|
@ -286,6 +285,7 @@ QXcbConnection::QXcbConnection(QXcbNativeInterface *nativeInterface, bool canGra
|
|||
qFatal("QXcbConnection: Could not connect to display %s", m_displayName.constData());
|
||||
|
||||
#ifdef XCB_USE_EGL
|
||||
EGLNativeDisplayType dpy = EGL_DEFAULT_DISPLAY;
|
||||
EGLDisplay eglDisplay = eglGetDisplay(dpy);
|
||||
m_egl_display = eglDisplay;
|
||||
EGLint major, minor;
|
||||
|
|
|
|||
Loading…
Reference in New Issue