summaryrefslogtreecommitdiffstats
path: root/examples/wayland/minimal-qml/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/minimal-qml/main.cpp')
-rw-r--r--examples/wayland/minimal-qml/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/wayland/minimal-qml/main.cpp b/examples/wayland/minimal-qml/main.cpp
index 435b4e3f1..60378e860 100644
--- a/examples/wayland/minimal-qml/main.cpp
+++ b/examples/wayland/minimal-qml/main.cpp
@@ -57,6 +57,9 @@
int main(int argc, char *argv[])
{
+ // ShareOpenGLContexts is needed for using the threaded renderer
+ // on Nvidia EGLStreams
+ QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
QGuiApplication app(argc, argv);
QQmlApplicationEngine appEngine(QUrl("qrc:///main.qml"));