diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index bd9409f055..300beaad15 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -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); }