From 3e42ddc2cccc473d89eab26e876d651616ae8013 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 30 Jan 2011 13:59:48 +0100 Subject: [PATCH] ShaderManager handles rebind of previous shader. No need to explicitly rebind the window shader in blur effect. --- effects/blur/blur.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/effects/blur/blur.cpp b/effects/blur/blur.cpp index 9dcecc267a..5980ce7ad1 100644 --- a/effects/blur/blur.cpp +++ b/effects/blur/blur.cpp @@ -238,10 +238,6 @@ void BlurEffect::drawWindow(EffectWindow *w, int mask, QRegion region, WindowPai if (valid && !shape.isEmpty() && region.intersects(shape.boundingRect())) { doBlur(shape, screen, data.opacity * data.contents_opacity); - - // Rebind the shader used for drawing the window if one was set - if (data.shader) - data.shader->bind(); } // Draw the window over the blurred area