summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglfunctions_4_0_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/opengl/qopenglfunctions_4_0_core.h')
-rw-r--r--src/gui/opengl/qopenglfunctions_4_0_core.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/opengl/qopenglfunctions_4_0_core.h b/src/gui/opengl/qopenglfunctions_4_0_core.h
index a3004817f5..64b75a7374 100644
--- a/src/gui/opengl/qopenglfunctions_4_0_core.h
+++ b/src/gui/opengl/qopenglfunctions_4_0_core.h
@@ -51,7 +51,9 @@
#ifndef QOPENGLVERSIONFUNCTIONS_4_0_CORE_H
#define QOPENGLVERSIONFUNCTIONS_4_0_CORE_H
-#ifndef QT_NO_OPENGL
+#include <QtCore/qglobal.h>
+
+#if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2)
#include <QtGui/QOpenGLVersionFunctions>
#include <QtGui/qopenglcontext.h>
@@ -2338,6 +2340,6 @@ inline void QOpenGLFunctions_4_0_Core::glMinSampleShading(GLfloat value)
QT_END_NAMESPACE
-#endif // QT_NO_OPENGL
+#endif // QT_NO_OPENGL && !QT_OPENGL_ES_2
#endif