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.
This commit is contained in:
Vlad Zahorodnii 2022-07-19 18:23:05 +03:00
parent 99913bab5d
commit 42285bc659

View file

@ -324,8 +324,6 @@ bool WaylandEglBackend::initRenderingContext()
} }
const auto &firstOutput = m_outputs.first(); 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(); return firstOutput->makeContextCurrent();
} }