  static QTreeWidgetItem *get_gl_info_egl(Display *dpy, int scrnum, QTreeWidgetItem *l1, QTreeWidgetItem *after)
  {
     Window win;
-@@ -847,6 +851,7 @@ static QTreeWidgetItem *get_gl_info_egl(Display *dpy, int scrnum, QTreeWidgetIte
+@@ -852,6 +856,7 @@ static QTreeWidgetItem *get_gl_info_egl(Display *dpy, int scrnum, QTreeWidgetIte
     return result;
  
  }

 
 static QTreeWidgetItem *get_gl_info_egl_qt(QTreeWidgetItem *l1, QTreeWidgetItem *after, QSurfaceFormat::OpenGLContextProfile profile, const QString &title)
 {
@@ -894,7 +899,9 @@ bool GetInfo_OpenGL(QTreeWidget *treeWidget)
 {
     QTreeWidgetItem *l1, *l2 = NULL;
 
+#if HAVE_X11
     static bool isX11 = QGuiApplication::platformName() == QStringLiteral("xcb");


Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 Modules/info/CMakeLists.txt   |  6 ++++--
 Modules/opengl/CMakeLists.txt |  5 ++++-
 Modules/opengl/opengl.cpp     | 13 +++++++++++--
 3 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/Modules/info/CMakeLists.txt b/Modules/info/CMakeLists.txt
index 4dae851..a528dbd 100644
