diff options
-rw-r--r-- | src/gui/kernel/qopenglcontext_p.h | 3 | ||||
-rw-r--r-- | src/gui/kernel/qplatformopenglcontext_qpa.h | 3 | ||||
-rw-r--r-- | src/opengl/qgl.h | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/kernel/qopenglcontext_p.h b/src/gui/kernel/qopenglcontext_p.h index 7b4e880ade..3e2c35f088 100644 --- a/src/gui/kernel/qopenglcontext_p.h +++ b/src/gui/kernel/qopenglcontext_p.h @@ -42,6 +42,8 @@ #ifndef QGUIGLCONTEXT_P_H #define QGUIGLCONTEXT_P_H +#ifndef QT_NO_OPENGL + #include "qopengl.h" #include "qopenglcontext.h" #include <private/qobject_p.h> @@ -245,4 +247,5 @@ QT_END_NAMESPACE QT_END_HEADER +#endif // QT_NO_OPENGL #endif // QGUIGLCONTEXT_P_H diff --git a/src/gui/kernel/qplatformopenglcontext_qpa.h b/src/gui/kernel/qplatformopenglcontext_qpa.h index 17d4e96f8e..af70368f5e 100644 --- a/src/gui/kernel/qplatformopenglcontext_qpa.h +++ b/src/gui/kernel/qplatformopenglcontext_qpa.h @@ -42,6 +42,8 @@ #ifndef QPLATFORMGLCONTEXT_H #define QPLATFORMGLCONTEXT_H +#ifndef QT_NO_OPENGL + #include <QtCore/qnamespace.h> #include <QtGui/qsurfaceformat.h> #include <QtGui/qwindow.h> @@ -91,5 +93,6 @@ QT_END_NAMESPACE QT_END_HEADER +#endif // QT_NO_OPENGL #endif // QPLATFORMGLCONTEXT_H diff --git a/src/opengl/qgl.h b/src/opengl/qgl.h index be1651ea2f..caa5b96cdc 100644 --- a/src/opengl/qgl.h +++ b/src/opengl/qgl.h @@ -42,6 +42,8 @@ #ifndef QGL_H #define QGL_H +#ifndef QT_NO_OPENGL + #include <QtWidgets/qwidget.h> #include <QtGui/qpaintengine.h> #include <QtOpenGL/qglcolormap.h> @@ -551,4 +553,5 @@ QT_END_NAMESPACE QT_END_HEADER +#endif // QT_NO_OPENGL #endif // QGL_H |