summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2018-01-05 15:10:17 +0100
committerJesus Fernandez <Jesus.Fernandez@qt.io>2018-01-09 14:03:04 +0000
commit3893920bdb1942390721b259bae297b7711f4bcf (patch)
tree8f8eba4ccba2210fed167e17794366876e30ce34 /src
parent2bff9adbbb6b65d35b944f4ee65ea7309c12a290 (diff)
Only claim support for capabilities WebGL actually has
Don't fall back on the platform plugin's capability check, as that's irrelevant to the capabilities deliverable via WebGL. Change-Id: If3520adfa8b0dd9a61a46a3a17f57eadcde536d6 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/webgl/qwebglintegration.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/plugins/platforms/webgl/qwebglintegration.cpp b/src/plugins/platforms/webgl/qwebglintegration.cpp
index 121debf..b2ee939 100644
--- a/src/plugins/platforms/webgl/qwebglintegration.cpp
+++ b/src/plugins/platforms/webgl/qwebglintegration.cpp
@@ -257,14 +257,13 @@ QPlatformOpenGLContext *QWebGLIntegration::createPlatformOpenGLContext(QOpenGLCo
bool QWebGLIntegration::hasCapability(QPlatformIntegration::Capability cap) const
{
- // We assume that devices will have more and not less capabilities
switch (cap) {
- case ThreadedPixmaps: return true;
- case OpenGL: return true;
- case ThreadedOpenGL: return true;
- case WindowManagement: return false;
- case RasterGLSurface: return true;
- default: return QPlatformIntegration::hasCapability(cap);
+ case OpenGL:
+ case ThreadedOpenGL:
+ case ThreadedPixmaps:
+ return true;
+ default:
+ return false;
}
}