kwin/effects/backgroundcontrast
Vlad Zagorodniy 0d7415336f [effects] Make sure that all effects reset the streaming buffer
Summary:
The streaming buffer is shared so we have to reset it before rendering
something. Otherwise, it's basically undefined behavior.

For example, if the streaming buffer had been used for rendering a
geometry with some color, then the Background Contrast effect may crash
in GLVertexBuffer::bindArrays, it all depends on whether there is any
bounded GLShader. To fix that, the buffer has to be reset.

BUG: 356141

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D19034
2019-02-15 15:51:54 +02:00
..
.directory stub for the background contrast effect 2014-01-23 14:44:00 +01:00
backgroundcontrast.kdev4 stub for the background contrast effect 2014-01-23 14:44:00 +01:00
CMakeLists.txt [effects] Drop the .desktop files for the BuiltIn Effects 2014-04-28 13:52:43 +02:00
contrast.cpp [effects] Make sure that all effects reset the streaming buffer 2019-02-15 15:51:54 +02:00
contrast.h Add windowsystem plugin for KWin's qpa 2019-01-27 08:59:58 +01:00
contrastshader.cpp [effects] Support GLES 3 in Blur and BackgroundContrast 2015-11-09 16:22:32 +01:00
contrastshader.h [effects/backgroundcontrast] Remove ContrastShader::pixelSizeLocation 2017-07-31 18:00:17 +02:00