summaryrefslogtreecommitdiffstats
path: root/src/opengl/qopenglvertexarrayobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qopenglvertexarrayobject.cpp')
-rw-r--r--src/opengl/qopenglvertexarrayobject.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/opengl/qopenglvertexarrayobject.cpp b/src/opengl/qopenglvertexarrayobject.cpp
index 18c9d09e19..98374fb9e2 100644
--- a/src/opengl/qopenglvertexarrayobject.cpp
+++ b/src/opengl/qopenglvertexarrayobject.cpp
@@ -10,8 +10,11 @@
#include <QtGui/qguiapplication.h>
#include <QtOpenGL/QOpenGLVersionFunctionsFactory>
-#include <QtOpenGL/qopenglfunctions_3_0.h>
-#include <QtOpenGL/qopenglfunctions_3_2_core.h>
+
+#if !QT_CONFIG(opengles2)
+# include <QtOpenGL/qopenglfunctions_3_0.h>
+# include <QtOpenGL/qopenglfunctions_3_2_core.h>
+#endif
#include <private/qopenglcontext_p.h>
#include <private/qopenglextensions_p.h>