summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qopenglwindow.h
diff options
context:
space:
mode:
authorLaszlo Agocs <[email protected]>2014-08-29 17:57:49 +0200
committerLaszlo Agocs <[email protected]>2014-09-01 14:29:36 +0200
commit6ae01c72e1634d41e4775e6cec0089c8d49da29c (patch)
tree59229bb0686a19f5ce244c8ce73f96d4c72d7d66 /src/gui/kernel/qopenglwindow.h
parentffceaf62135e58cfc14d3d9fd058ff0c08baf1e9 (diff)
Fix no-opengl build
Change-Id: I577bd5d10e52571c95c9e646327264cf95ac6eb1 Reviewed-by: Andrew Knight <[email protected]> Reviewed-by: Friedemann Kleint <[email protected]>
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