Fix malformed GL extension name for immutable storage
Change-Id: Ice2821d9d9523fa8cd446c009677378d52f61ad5 Task-number: QTBUG-59189 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
parent
07d4376e0d
commit
a43670a889
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user