From 42285bc659b9a6c235c65b105891c18c727a1f4c Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 19 Jul 2022 18:23:05 +0300 Subject: [PATCH] backends/wayland: Remove AbstractEglBackend::setSurface() call KWin requires surfacesless contexts, so this setSurface() is not needed. This ensures that makeCurrent() won't make the opengl context current against a surface that belongs to a removed output. --- src/backends/wayland/egl_wayland_backend.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/backends/wayland/egl_wayland_backend.cpp b/src/backends/wayland/egl_wayland_backend.cpp index 600b6df6e7..f42f488559 100644 --- a/src/backends/wayland/egl_wayland_backend.cpp +++ b/src/backends/wayland/egl_wayland_backend.cpp @@ -324,8 +324,6 @@ bool WaylandEglBackend::initRenderingContext() } const auto &firstOutput = m_outputs.first(); - // set our first surface as the one for the abstract backend, just to make it happy - setSurface(firstOutput->m_eglSurface); return firstOutput->makeContextCurrent(); }