Fix memory lead and add missing glDisable.
svn path=/trunk/KDE/kdebase/workspace/; revision=810633
This commit is contained in:
parent
451cc25f01
commit
1904a170e4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue