summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.cpp3
1 files changed, 3 insertions, 0 deletions
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;