Skip to content

Commit a8cb5a7

Browse files
committed
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 <[email protected]>
1 parent bbd954a commit a8cb5a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/plugins/platforms/webgl/qwebglintegration.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ QPlatformTheme *QWebGLIntegration::createPlatformTheme(const QString &name) cons
179179
QPlatformBackingStore *QWebGLIntegration::createPlatformBackingStore(QWindow *window) const
180180
{
181181
Q_UNUSED(window);
182+
qCCritical(lcWebGL, "WebGL QPA platform plugin: Raster surfaces are not supported");
182183
return nullptr;
183184
}
184185

0 commit comments

Comments
 (0)