summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qgl.h')
-rw-r--r--src/opengl/qgl.h3
1 files changed, 3 insertions, 0 deletions
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