diff options
Diffstat (limited to 'examples/wayland/custom-shell/compositor/main.cpp')
-rw-r--r-- | examples/wayland/custom-shell/compositor/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/wayland/custom-shell/compositor/main.cpp b/examples/wayland/custom-shell/compositor/main.cpp index 17ab3a03d..72f233e8e 100644 --- a/examples/wayland/custom-shell/compositor/main.cpp +++ b/examples/wayland/custom-shell/compositor/main.cpp @@ -18,6 +18,9 @@ static void registerTypes() 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); registerTypes(); QQmlApplicationEngine appEngine(QUrl("qrc:///qml/main.qml")); |