ShaderManager handles rebind of previous shader.
No need to explicitly rebind the window shader in blur effect.
This commit is contained in:
parent
a6de13e2f7
commit
3e42ddc2cc
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue