diff --git a/src/opengl/gltexture.cpp b/src/opengl/gltexture.cpp index 4506dcd9be..37b3fa837d 100644 --- a/src/opengl/gltexture.cpp +++ b/src/opengl/gltexture.cpp @@ -571,7 +571,7 @@ std::unique_ptr GLTexture::upload(const QImage &image) type = GL_UNSIGNED_INT_8_8_8_8_REV; } - if (context->supportsARGB32Textures()) { + if (context->supportsTextureStorage()) { glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, im.width(), im.height()); glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, im.width(), im.height(), format, type, im.constBits());