aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2016-05-04 11:45:48 +0200
committerKai Koehne <kai.koehne@qt.io>2016-05-20 09:12:09 +0000
commit541eb6b704b53a6e889ea206d8e058ec3017100c (patch)
tree88910ecb428c16a23e910a233fb2345fd25ae460 /tools
parentafd01a7341df6ab5629469d9b55ab4f1b195cff0 (diff)
qmlplugindump: Allow dumping of WebEngine plugins
WebEngineView requires a shared opengl context. The plugin checks for this when initializing. Change-Id: I686b9c22be95f7ef16ea68ea49b8f9aee47789ae Reviewed-by: Marco Benelli <marco.benelli@qt.io>
Diffstat (limited to 'tools')
-rw-r--r--tools/qmlplugindump/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/qmlplugindump/main.cpp b/tools/qmlplugindump/main.cpp
index d0d70fd0fe..395b3cd195 100644
--- a/tools/qmlplugindump/main.cpp
+++ b/tools/qmlplugindump/main.cpp
@@ -972,6 +972,7 @@ int main(int argc, char *argv[])
if (!requireWindowManager)
qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("minimal"));
+ QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
QGuiApplication app(argc, argv);
const QStringList args = app.arguments();
const QString appName = QFileInfo(app.applicationFilePath()).baseName();