backends/x11: 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:26:36 +03:00
parent 42285bc659
commit dd9b4aa37a

View file

@ -103,7 +103,6 @@ bool X11WindowedEglBackend::createSurfaces()
if (m_outputs.isEmpty()) { if (m_outputs.isEmpty()) {
return false; return false;
} }
setSurface(m_outputs.first()->surface());
return true; return true;
} }