ShaderManager handles rebind of previous shader.

No need to explicitly rebind the window shader in blur effect.
This commit is contained in:
Martin Gräßlin 2011-01-30 13:59:48 +01:00
parent a6de13e2f7
commit 3e42ddc2cc

View file

@ -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