diff options
-rw-r--r-- | src/quick/scenegraph/util/qsgtexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/util/qsgtexture.cpp b/src/quick/scenegraph/util/qsgtexture.cpp index abf3002803..51b3bafaf7 100644 --- a/src/quick/scenegraph/util/qsgtexture.cpp +++ b/src/quick/scenegraph/util/qsgtexture.cpp @@ -693,7 +693,7 @@ void QSGPlainTexture::bind() externalFormat = GL_BGRA; internalFormat = GL_BGRA; #ifdef Q_OS_IOS - } else if (strstr(extensions, "GL_APPLE_texture_format_BGRA8888")) { + } else if (context->hasExtension(QByteArrayLiteral("GL_APPLE_texture_format_BGRA8888"))) { externalFormat = GL_BGRA; internalFormat = GL_RGBA; #endif |