Commit 33bcc43f authored by Roman Gilg's avatar Roman Gilg
Browse files

[scenes/opengl] Remove glDrawBuffer call

According to Gl 3.2 (page 501) and 4.5 (page 204) specs the initial state of
the default framebuffer is already BACK. Therefore we do not need to set it

When we draw in the future to alternative framebuffers which do not have back
buffers this call is fatal.

Test Plan: No tearing on Wayland, tearing as before on X11.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent 930c2d69
......@@ -337,9 +337,6 @@ SceneOpenGL::SceneOpenGL(OpenGLBackend *backend, QObject *parent)
init_ok = false;
if (!glPlatform->isGLES() && !m_backend->isSurfaceLessContext()) {
m_debug = qstrcmp(qgetenv("KWIN_GL_DEBUG"), "1") == 0;
Markdown is supported
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