From 6c1c6b86db07348b636c39ee344a12570e4e322c Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 12 Jan 2022 08:39:33 +0000 Subject: [PATCH] Use shared contexts for plasmashell Shared contexts allow us to share textures and vertex buffers between contexts (windows) this allows us to reduce memory in popups and alike. To fully make use of this requires some follow up work in ManagedTextureNode for FrameSVG, but we should sitll get some OOTB. If shared contexts are not supported this fails gracefully - though we are relying on shared contexts within kwin for a release without issue. It also should fix WebGL inside WebViews. BUG: 448299 --- shell/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/main.cpp b/shell/main.cpp index 147483df44..a40165148e 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -74,6 +74,7 @@ int main(int argc, char *argv[]) } else { QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); } + QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts); QQuickWindow::setDefaultAlphaBuffer(true); -- GitLab