Commit 42285bc6 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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.
parent 99913bab
......@@ -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();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment