diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-02-28 15:50:02 +0100 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2017-03-01 16:17:53 +0000 |
commit | a43670a889274431066d9390825c852fbbe14240 (patch) | |
tree | 93dcabeca56949eb87cfd041f2379be1b91ab30d /src/gui/opengl/qopengltexture.cpp | |
parent | 07d4376e0d9a147afe18c03d130bd5bc6c04ad49 (diff) | |
download | qtbase-a43670a889274431066d9390825c852fbbe14240.tar.gz |
Fix malformed GL extension name for immutable storage
Change-Id: Ice2821d9d9523fa8cd446c009677378d52f61ad5
Task-number: QTBUG-59189
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/gui/opengl/qopengltexture.cpp')
-rw-r--r-- | src/gui/opengl/qopengltexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/opengl/qopengltexture.cpp b/src/gui/opengl/qopengltexture.cpp index 3696378bd1..0831bfe706 100644 --- a/src/gui/opengl/qopengltexture.cpp +++ b/src/gui/opengl/qopengltexture.cpp @@ -3685,7 +3685,7 @@ bool QOpenGLTexture::hasFeature(Feature feature) const char *renderer = reinterpret_cast<const char *>(ctx->functions()->glGetString(GL_RENDERER)); switch (feature) { case ImmutableStorage: - supported = (f.version() >= qMakePair(3, 0) || ctx->hasExtension(QByteArrayLiteral("EXT_texture_storage"))) + supported = (f.version() >= qMakePair(3, 0) || ctx->hasExtension(QByteArrayLiteral("GL_EXT_texture_storage"))) && !(renderer && strstr(renderer, "Mali")); // do not use on Mali: QTBUG-45106 break; |