diff options
Diffstat (limited to 'src/gui/opengl/qopenglfunctions_es2.h')
-rw-r--r-- | src/gui/opengl/qopenglfunctions_es2.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/opengl/qopenglfunctions_es2.h b/src/gui/opengl/qopenglfunctions_es2.h index c040f2cf82..9c14567723 100644 --- a/src/gui/opengl/qopenglfunctions_es2.h +++ b/src/gui/opengl/qopenglfunctions_es2.h @@ -42,7 +42,9 @@ #ifndef QOPENGLVERSIONFUNCTIONS_ES2_H #define QOPENGLVERSIONFUNCTIONS_ES2_H -#ifndef QT_NO_OPENGL +#include <QtCore/qglobal.h> + +#if defined(QT_OPENGL_ES_2) #include <QtGui/QOpenGLVersionFunctions> #include <QtGui/qopenglcontext.h> @@ -926,6 +928,6 @@ inline void QOpenGLFunctions_ES2::glViewport(GLint x, GLint y, GLsizei width, GL QT_END_NAMESPACE -#endif // QT_NO_OPENGL +#endif // QT_OPENGL_ES_2 #endif |