Diffusion KWin 33bcc43fdf6c

[scenes/opengl] Remove glDrawBuffer call

Authored by romangg on Dec 11 2019, 3:24 AM.

Description

[scenes/opengl] Remove glDrawBuffer call

Summary:
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
explicitly.

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: https://phabricator.kde.org/D25868

Details

Committed
romanggDec 11 2019, 2:47 PM
Reviewer
KWin
Differential Revision
D25868: [scenes/opengl] Remove glDrawBuffer call
Parents
R108:930c2d69a714: [KCM/Desktop] Use KConfig XT to store virtualdesktops related settings
Branches
Unknown
Tags
Unknown