Commit 58b6721a authored by Martin Flöser's avatar Martin Flöser

ShaderManager handles rebind of previous shader.

No need to explicitly rebind the window shader in blur effect.
parent 9ce57a76
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment