diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2022-06-01 13:03:07 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2022-06-28 10:52:23 +0200 |
commit | d4b27d9b527c113452987a9af83c54d4f5d077d3 (patch) | |
tree | b15bd3ac708e03bd47f08155f6ca09e353b644a1 /src | |
parent | f814cc6a7911f6cf14ce443f41c2336bc1d213c6 (diff) |
Avoid including qopenglfunctions header files if Qt is built with GLES2
Change-Id: I3a7a69f5eef604408713934811efb984e78d68dd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/opengl/qopenglvertexarrayobject.cpp | 7 |
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> |