Fix memory lead and add missing glDisable.

svn path=/trunk/KDE/kdebase/workspace/; revision=810633
This commit is contained in:
Martin Gräßlin 2008-05-21 07:49:19 +00:00
parent 451cc25f01
commit 1904a170e4

View file

@ -440,6 +440,8 @@ void FlipSwitchEffect::paintScreen( int mask, QRegion region, ScreenPaintData& d
frameRect.height()*0.8f );
icon->render( region, iconRect);
icon->unbind();
delete icon;
glDisable( GL_BLEND );
glPopAttrib();
#endif
}