fixed memory leak in COpenGL.cs

This commit is contained in:
Alexander Eckart committed 2012-03-15 07:33:09 +01:00
1 parent 0d9033d21e
commit 10e996c96c
1 file changed
+4
+4
View File
@@ -464,6 +464,9 @@ namespace Vocaluxe.Lib.Draw
{
GL.CallList(list);
}
if (_GLList.Count > 0)
GL.DeleteLists(_GLList[0], _GLList.Count);
_GLList.Clear();
_Run = CGraphics.UpdateGameLogic(_Keys, _Mouse);
@@ -1437,6 +1440,7 @@ namespace Vocaluxe.Lib.Draw
texture.TexturePath = String.Empty;
_Textures[index] = texture;
q.data = null;
_Queque.RemoveAt(0);
}
}