summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qopenglwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kernel/qopenglwindow.h')
-rw-r--r--src/gui/kernel/qopenglwindow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/kernel/qopenglwindow.h b/src/gui/kernel/qopenglwindow.h
index 294bd90116f..e30de3b6acb 100644
--- a/src/gui/kernel/qopenglwindow.h
+++ b/src/gui/kernel/qopenglwindow.h
@@ -42,6 +42,10 @@
#ifndef QOPENGLWINDOW_H
#define QOPENGLWINDOW_H
+#include <QtCore/qglobal.h>
+
+#ifndef QT_NO_OPENGL
+
#include <QtGui/QPaintDeviceWindow>
#include <QtGui/QOpenGLContext>
#include <QtGui/QImage>
@@ -97,4 +101,6 @@ private:
QT_END_NAMESPACE
+#endif // QT_NO_OPENGL
+
#endif