Commit 6c1c6b86 authored by David Edmundson's avatar David Edmundson
Browse files

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
parent 4df91423
Pipeline #208788 passed with stage
in 8 minutes and 27 seconds
......@@ -74,6 +74,7 @@ int main(int argc, char *argv[])
} else {
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
}
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
QQuickWindow::setDefaultAlphaBuffer(true);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment