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