From 050ea5010b7e6240ea2cf34e0f0db8385ec1e42a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 26 Jun 2011 12:18:25 +0200 Subject: [PATCH] Remove PaintClipper from Cube Seems to be a relict from the time when we scaled the cube on one screen. --- effects/cube/cube.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/effects/cube/cube.cpp b/effects/cube/cube.cpp index 13476b9525..91997bd3e7 100644 --- a/effects/cube/cube.cpp +++ b/effects/cube/cube.cpp @@ -402,10 +402,7 @@ void CubeEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) zTranslate *= (1.0 - timeLine.currentValue()); // reflection if (reflection && mode != Sphere) { - // restrict painting the reflections to the current screen - PaintClipper::push(QRegion(rect)); // we can use a huge scale factor (needed to calculate the rearground vertices) - // as we restrict with a PaintClipper painting on the current screen float scaleFactor = 1000000 * tan(60.0 * M_PI / 360.0f) / rect.height(); m_reflectionMatrix.setToIdentity(); m_reflectionMatrix.scale(1.0, -1.0, 1.0); @@ -522,7 +519,6 @@ void CubeEffect::paintScreen(int mask, QRegion region, ScreenPaintData& data) #endif } glDisable(GL_BLEND); - PaintClipper::pop(QRegion(rect)); } glEnable(GL_CULL_FACE); // caps