Text in credits screen was not removed on close

This commit is contained in:
Stephan Sundermann committed 2012-03-17 13:29:01 +01:00
1 parent c058ce5911
commit e65675f323
1 file changed
+9
+9
View File
@@ -293,6 +293,15 @@ namespace Vocaluxe.Screens
LogoTimer.Start();
}
public override void OnClose()
{
base.OnClose();
foreach (CText text in paragraphTexts)
text.UnloadTextures();
paragraphTexts.Clear();
}
public override bool Draw()
{
base.Draw();