From ad5aee2e34fad45d1d90bb059fa00a791d4ba3e2 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Tue, 14 Apr 2020 13:48:28 +0200 Subject: Get rid of QT_OPENGL_ES* The QT_OPENGL_ES* macros are leftovers from an earlier, ad hoc configuration system, which has since been replaced by QT_CONFIG. To clean things up in Qt 6, we use the new way instead. Task-number: QTBUG-83467 Change-Id: I578dc7695bff9d5ee303b22e44f60fee22fe0c28 Reviewed-by: Lars Knoll --- src/gui/opengl/qopengl.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/gui/opengl/qopengl.h') diff --git a/src/gui/opengl/qopengl.h b/src/gui/opengl/qopengl.h index 3a2393ea58..995206f248 100644 --- a/src/gui/opengl/qopengl.h +++ b/src/gui/opengl/qopengl.h @@ -63,9 +63,9 @@ // access to additional functionality the drivers may expose but // which the system headers do not. -#if defined(QT_OPENGL_ES_2) +#if QT_CONFIG(opengles2) # if defined(Q_OS_IOS) || defined(Q_OS_TVOS) -# if defined(QT_OPENGL_ES_3) +# if QT_CONFIG(opengles3) # include # include # else @@ -83,7 +83,7 @@ typedef void* GLeglImageOES; # elif !defined(Q_OS_DARWIN) // "uncontrolled" ES2 platforms -// In "es2" builds (QT_OPENGL_ES_2) additional defines indicate GLES 3.0 or +// In "es2" builds (QT_CONFIG(opengles2)) additional defines indicate GLES 3.0 or // higher is available *at build time*. In this case include the corresponding // header. These are backwards compatible and it should be safe to include // headers on top of each other, meaning that applications can include gl2.h @@ -101,11 +101,11 @@ typedef void* GLeglImageOES; # define QGL_TEMP_GLEXT_PROTO # endif -# if defined(QT_OPENGL_ES_3_2) +# if QT_CONFIG(opengles32) # include -# elif defined(QT_OPENGL_ES_3_1) +# elif QT_CONFIG(opengles31) # include -# elif defined(QT_OPENGL_ES_3) +# elif QT_CONFIG(opengles3) # include # else # include @@ -145,10 +145,10 @@ typedef char GLchar; # endif # include # endif // Q_OS_MAC -#endif // QT_OPENGL_ES_2 +#endif // !QT_CONFIG(opengles2) // Desktops can support OpenGL 4. -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) #define QT_OPENGL_3 #define QT_OPENGL_3_2 #define QT_OPENGL_4 @@ -162,7 +162,7 @@ QT_BEGIN_NAMESPACE // When all else fails we provide sensible fallbacks - this is needed to // allow compilation on OS X 10.6 -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) // OS X 10.6 doesn't define these which are needed below // OS X 10.7 and later defien them in gl3.h -- cgit v1.2.3