Avoid including qopenglfunctions header files if Qt is built with GLES2

Change-Id: I3a7a69f5eef604408713934811efb984e78d68dd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2022-06-01 13:03:07 +02:00
parent f814cc6a79
commit d4b27d9b52
2 changed files with 8 additions and 3 deletions

View File

@ -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>

View File

@ -7,7 +7,9 @@
#include <QtOpenGL/qopengltextureblitter.h>
#include <QtOpenGL/QOpenGLVertexArrayObject>
#include <QtOpenGL/QOpenGLBuffer>
#include <QtOpenGL/QOpenGLFunctions_4_2_Core>
#if !QT_CONFIG(opengles2)
# include <QtOpenGL/QOpenGLFunctions_4_2_Core>
#endif
#include <QtOpenGL/QOpenGLVersionFunctionsFactory>
#include <QtGui/private/qopenglcontext_p.h>
#include <QtGui/QOpenGLFunctions>