From 9fb7f723cf2bcf840075e361d473f82015d42334 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Wed, 29 Jan 2025 11:14:25 +0200 Subject: Support threaded rendering for Nvidia EGLStreams MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compositor needs use Qt::AA_ShareOpenGLContexts application attribute on NVidia boards. Fixes: QTBUG-131870 Change-Id: Ic658da5b8ab1ac097a66085f5f53446a7039f7bd Reviewed-by: Pasi Petäjäjärvi --- main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.cpp b/main.cpp index 105e42e..57f4ad1 100644 --- a/main.cpp +++ b/main.cpp @@ -29,6 +29,9 @@ void displayHelp(const char *appName) 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); QString appsRoot; -- cgit v1.2.3