[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:
Martin Gräßlin 2015-12-01 12:14:11 +01:00
parent b258dc53b3
commit 67d79385cf

View file

@ -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);
}