The assert for popRenderTarget in kwinshadereffect caused the kwin freezes as if assert has not been compiled in, the fbo will never be detached. So now we have working looking glass and sharpen effect back.

BUG: 183981

svn path=/trunk/KDE/kdebase/workspace/; revision=960039
This commit is contained in:
Martin Gräßlin 2009-04-27 20:02:22 +00:00
parent 8f19fcd767
commit 2830385a40

View file

@ -151,7 +151,8 @@ void ShaderEffect::postPaintScreen()
if( mValid && mEnabled )
{
// Disable render texture
assert( effects->popRenderTarget() == mRenderTarget );
GLRenderTarget* target = effects->popRenderTarget();
assert( target == mRenderTarget );
mTexture->bind();
// Use the shader