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.
remotes/origin/work/virtual-desktop-model-2
Vlad Zahorodnii 5 years ago
parent b32592f54e
commit c79d7f56dd
  1. 3
      src/libkwineffects/kwineffectquickview.cpp

@ -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;

Loading…
Cancel
Save