From 504cb6fa4d4448f65dd231c791371ad93d35a504 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 11 Apr 2013 09:01:01 +0200 Subject: [PATCH] Do not check compositing type in LanczosFilter The LanczosFilter is only created by the SceneOpenGL2, so yes it is OpenGL2 compositing - no need to check each frame. --- lanczosfilter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lanczosfilter.cpp b/lanczosfilter.cpp index 91f701a6af..35999e9f3c 100644 --- a/lanczosfilter.cpp +++ b/lanczosfilter.cpp @@ -65,7 +65,7 @@ void LanczosFilter::init() if (!force && options->glSmoothScale() != 2) return; // disabled by config - if (effects->compositingType() != OpenGL2Compositing || !GLRenderTarget::supported()) + if (!GLRenderTarget::supported()) return; GLPlatform *gl = GLPlatform::instance(); @@ -171,7 +171,7 @@ void LanczosFilter::createOffsets(int count, float width, Qt::Orientation direct void LanczosFilter::performPaint(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data) { - if (effects->compositingType() == OpenGL2Compositing && (data.xScale() < 0.9 || data.yScale() < 0.9) && + if ((data.xScale() < 0.9 || data.yScale() < 0.9) && KGlobalSettings::graphicEffectsLevel() & KGlobalSettings::SimpleAnimationEffects) { if (!m_inited) init();