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/opengl/qopengltexture.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/opengl/qopengltexture.cpp') diff --git a/src/opengl/qopengltexture.cpp b/src/opengl/qopengltexture.cpp index 49ebdfbec2e..a306e2eab84 100644 --- a/src/opengl/qopengltexture.cpp +++ b/src/opengl/qopengltexture.cpp @@ -3890,7 +3890,7 @@ bool QOpenGLTexture::hasFeature(Feature feature) bool supported = false; -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) if (!ctx->isOpenGLES()) { switch (feature) { case ImmutableMultisampleStorage: @@ -4242,7 +4242,7 @@ void QOpenGLTexture::generateMipMaps(int baseLevel, bool resetBaseLevel) */ void QOpenGLTexture::setSwizzleMask(SwizzleComponent component, SwizzleValue value) { -#if !defined(Q_OS_MAC) && !defined(QT_OPENGL_ES_2) +#if !defined(Q_OS_MAC) && !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); @@ -4271,7 +4271,7 @@ void QOpenGLTexture::setSwizzleMask(SwizzleComponent component, SwizzleValue val void QOpenGLTexture::setSwizzleMask(SwizzleValue r, SwizzleValue g, SwizzleValue b, SwizzleValue a) { -#if !defined(Q_OS_MAC) && !defined(QT_OPENGL_ES_2) +#if !defined(Q_OS_MAC) && !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); @@ -4331,7 +4331,7 @@ QOpenGLTexture::SwizzleValue QOpenGLTexture::swizzleMask(SwizzleComponent compon */ void QOpenGLTexture::setDepthStencilMode(QOpenGLTexture::DepthStencilMode mode) { -#if !defined(Q_OS_MAC) && !defined(QT_OPENGL_ES_2) +#if !defined(Q_OS_MAC) && !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); @@ -4628,7 +4628,7 @@ void QOpenGLTexture::setBorderColor(const QColor &color) */ void QOpenGLTexture::setBorderColor(float r, float g, float b, float a) { -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); @@ -4661,7 +4661,7 @@ void QOpenGLTexture::setBorderColor(float r, float g, float b, float a) */ void QOpenGLTexture::setBorderColor(int r, int g, int b, int a) { -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); @@ -4696,7 +4696,7 @@ void QOpenGLTexture::setBorderColor(int r, int g, int b, int a) */ void QOpenGLTexture::setBorderColor(uint r, uint g, uint b, uint a) { -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); @@ -4808,7 +4808,7 @@ void QOpenGLTexture::borderColor(unsigned int *border) const */ void QOpenGLTexture::setMinimumLevelOfDetail(float value) { -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); @@ -4845,7 +4845,7 @@ float QOpenGLTexture::minimumLevelOfDetail() const */ void QOpenGLTexture::setMaximumLevelOfDetail(float value) { -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); @@ -4881,7 +4881,7 @@ float QOpenGLTexture::maximumLevelOfDetail() const */ void QOpenGLTexture::setLevelOfDetailRange(float min, float max) { -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); @@ -4923,7 +4923,7 @@ QPair QOpenGLTexture::levelOfDetailRange() const */ void QOpenGLTexture::setLevelofDetailBias(float bias) { -#if !defined(QT_OPENGL_ES_2) +#if !QT_CONFIG(opengles2) if (!QOpenGLContext::currentContext()->isOpenGLES()) { Q_D(QOpenGLTexture); d->create(); -- cgit v1.2.3