aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontextplugin.cpp
diff options
context:
space:
mode:
authorLorn Potter <lorn.potter@gmail.com>2017-12-01 15:50:30 +1000
committerLorn Potter <lorn.potter@gmail.com>2018-01-04 20:15:52 +0000
commit62d07125620e787e7461edc5cfd4aa4287f26847 (patch)
treeced38f7a6c4c6976c8d31d31001691d12e029ab6 /src/quick/scenegraph/qsgcontextplugin.cpp
parent1dbe0acecbc286b6df25fe2a9c4a373fa0d6b11e (diff)
wasm: get declarative building and running for webassembly
One thread Change-Id: Iab9bd20eb5951c7b0fe0b6f48f1f14ea7560d8f7 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/quick/scenegraph/qsgcontextplugin.cpp')
-rw-r--r--src/quick/scenegraph/qsgcontextplugin.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/quick/scenegraph/qsgcontextplugin.cpp b/src/quick/scenegraph/qsgcontextplugin.cpp
index 6583883d0c..1c2550d197 100644
--- a/src/quick/scenegraph/qsgcontextplugin.cpp
+++ b/src/quick/scenegraph/qsgcontextplugin.cpp
@@ -137,9 +137,10 @@ QSGAdaptationBackendData *contextFactory()
&& !QGuiApplicationPrivate::platformIntegration()->hasCapability(QPlatformIntegration::OpenGL)) {
requestedBackend = QString::fromLocal8Bit("software");
}
-
+#ifdef Q_OS_HTML5
+ requestedBackend = QString::fromLocal8Bit("software");
+#endif
if (!requestedBackend.isEmpty()) {
- qCDebug(QSG_LOG_INFO) << "Loading backend" << requestedBackend;
// First look for a built-in adaptation.
for (QSGContextFactoryInterface *builtInBackend : qAsConst(backendData->builtIns)) {