kwineffects: Disable OpenGLContext sharing check in EffectQuickView

On Wayland, QOpenGLContext::shareContext() will always return null even
if the newly created context has a share context.
icc-effect-5.26.4
Vlad Zahorodnii 2021-07-22 13:00:06 +03:00
parent b32592f54e
commit c79d7f56dd
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ EffectQuickView::EffectQuickView(QObject *parent, ExportMode exportMode)
d->m_renderControl->initialize(d->m_glcontext.data());
d->m_glcontext->doneCurrent();
if (!d->m_glcontext->shareContext()) {
// On Wayland, opengl contexts are implicitly shared.
if (!effects->waylandDisplay() && !d->m_glcontext->shareContext()) {
qCDebug(LIBKWINEFFECTS) << "Failed to create a shared context, falling back to raster rendering";
// still render via GL, but blit for presentation
d->m_useBlit = true;