summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformopenglcontext.h
diff options
context:
space:
mode:
authorNiclas Rosenvik <nros@netbsd.org>2021-03-23 11:26:21 +0000
committerNiclas Rosenvik <nros@netbsd.org>2021-04-11 12:49:04 +0000
commit7266bd459e7cf8d4f4e3ad67b4ff23dea4fbfd0e (patch)
tree5421b79c6a005b5e110f58b5d5eb481e258516c0 /src/gui/kernel/qplatformopenglcontext.h
parent67c3f3f4ffcadba32ea42522a36b3f6d88fc3482 (diff)
Fix GLX on non-linux X11 systems
Some parts of the GLX code is only enabled for Linux. This makes builds on other X11 supported platforms break when GLX is found. To fix this enable these parts of the code when Qt feature xcb-glx-plugin is enabled. xcb-glx-plugin has to be made public in order for QT_CONFIG(xcb_glx_plugin) to work correctly in these parts of the code. Change-Id: I6bf78b6a64787ed88c8e2fae40675244c9198c37 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Liang Qi <liang.qi@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformopenglcontext.h')
-rw-r--r--src/gui/kernel/qplatformopenglcontext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformopenglcontext.h b/src/gui/kernel/qplatformopenglcontext.h
index f5d74613946..eefe93111d8 100644
--- a/src/gui/kernel/qplatformopenglcontext.h
+++ b/src/gui/kernel/qplatformopenglcontext.h
@@ -127,7 +127,7 @@ struct Q_GUI_EXPORT QWindowsGLIntegration
};
#endif
-#if defined(Q_OS_LINUX)
+#if QT_CONFIG(xcb_glx_plugin)
struct Q_GUI_EXPORT QGLXIntegration
{
QT_DECLARE_NATIVE_INTERFACE(QGLXIntegration)