summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2018-01-05 14:49:34 +0100
committerJesus Fernandez <Jesus.Fernandez@qt.io>2018-01-09 14:54:59 +0000
commita8cb5a70a962f7bc90caf51d34ad33603e30ff30 (patch)
tree006f2ee1a38a3bd92d9b2085803c9bc0211430f8
parentbbd954a374907d62d97bbd42add263923201898e (diff)
qCritical if the user creates a raster surface
Raster surfaces are not allowed due to performance problems. A qCritical message is shown if the user tries to use the plugin in a widget application. [ChangeLog][QtWebGL] The application shows an error message when trying to create a QBackingStore in an application. Task-number: QTBUG-65054 Change-Id: I78bfd2b2714d7dce1f802b1864216655e2d74406 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r--src/plugins/platforms/webgl/qwebglintegration.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/webgl/qwebglintegration.cpp b/src/plugins/platforms/webgl/qwebglintegration.cpp
index b2ee939..8c17190 100644
--- a/src/plugins/platforms/webgl/qwebglintegration.cpp
+++ b/src/plugins/platforms/webgl/qwebglintegration.cpp
@@ -179,6 +179,7 @@ QPlatformTheme *QWebGLIntegration::createPlatformTheme(const QString &name) cons
QPlatformBackingStore *QWebGLIntegration::createPlatformBackingStore(QWindow *window) const
{
Q_UNUSED(window);
+ qCCritical(lcWebGL, "WebGL QPA platform plugin: Raster surfaces are not supported");
return nullptr;
}