Remove PaintClipper from CoverSwitch
Reflection in a vertical multiscreen setup are kind of broken without PaintClipper. But we have to ask ourselfe whether CoverSwitch in a vertical multi screen setup makes sense and whether it's useful to have reflections in such a setup. Horizontal multiscreen setup works fine (also with reflections).
This commit is contained in:
parent
9c8ebfc1fd
commit
8fa22d0f6a
1 changed files with 0 additions and 4 deletions
|
@ -260,14 +260,10 @@ void CoverSwitchEffect::paintScreen(int mask, QRegion region, ScreenPaintData& d
|
||||||
}
|
}
|
||||||
|
|
||||||
if (reflection) {
|
if (reflection) {
|
||||||
// restrict painting the reflections to the current screen
|
|
||||||
QRegion clip = QRegion(area);
|
|
||||||
PaintClipper::push(clip);
|
|
||||||
// no reflections during start and stop animation
|
// no reflections during start and stop animation
|
||||||
// except when using a shader
|
// except when using a shader
|
||||||
if ((!start && !stop) || ShaderManager::instance()->isValid())
|
if ((!start && !stop) || ShaderManager::instance()->isValid())
|
||||||
paintScene(frontWindow, leftWindows, rightWindows, true);
|
paintScene(frontWindow, leftWindows, rightWindows, true);
|
||||||
PaintClipper::pop(clip);
|
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
#ifndef KWIN_HAVE_OPENGLES
|
#ifndef KWIN_HAVE_OPENGLES
|
||||||
|
|
Loading…
Reference in a new issue