[effects] Drop resetting GenericShader from cube effect
The cube effect no longer modifies any aspects of the GenericShader, thus there is no need to reset any values.
This commit is contained in:
parent
b258dc53b3
commit
67d79385cf
1 changed files with 0 additions and 7 deletions
|
@ -515,13 +515,6 @@ void CubeEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data)
|
|||
desktopNameFrame->setText(effects->desktopName(frontDesktop));
|
||||
desktopNameFrame->render(region, opacity);
|
||||
}
|
||||
// restore the ScreenTransformation after all desktops are painted
|
||||
// if not done GenericShader keeps the rotation data and transforms windows incorrectly in other rendering calls
|
||||
if (effects->compositingType() == OpenGL2Compositing) {
|
||||
GLShader *shader = ShaderManager::instance()->pushShader(KWin::ShaderManager::GenericShader);
|
||||
shader->setUniform(GLShader::ScreenTransformation, QMatrix4x4());
|
||||
ShaderManager::instance()->popShader();
|
||||
}
|
||||
} else {
|
||||
effects->paintScreen(mask, region, data);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue