diff --git a/src/opengl/qopenglvertexarrayobject.cpp b/src/opengl/qopenglvertexarrayobject.cpp index 18c9d09e191..98374fb9e24 100644 --- a/src/opengl/qopenglvertexarrayobject.cpp +++ b/src/opengl/qopenglvertexarrayobject.cpp @@ -10,8 +10,11 @@ #include #include -#include -#include + +#if !QT_CONFIG(opengles2) +# include +# include +#endif #include #include diff --git a/tests/auto/gui/qopengl/tst_qopengl.cpp b/tests/auto/gui/qopengl/tst_qopengl.cpp index 4e81af6cf33..58e09f7d1b3 100644 --- a/tests/auto/gui/qopengl/tst_qopengl.cpp +++ b/tests/auto/gui/qopengl/tst_qopengl.cpp @@ -7,7 +7,9 @@ #include #include #include -#include +#if !QT_CONFIG(opengles2) +# include +#endif #include #include #include