fixed memory leak in COpenGL.cs
This commit is contained in:
1 parent
0d9033d21e
commit
10e996c96c
1 file changed
+4
@@ -464,6 +464,9 @@ namespace Vocaluxe.Lib.Draw
|
|||||||
{
|
{
|
||||||
GL.CallList(list);
|
GL.CallList(list);
|
||||||
}
|
}
|
||||||
|
if (_GLList.Count > 0)
|
||||||
|
GL.DeleteLists(_GLList[0], _GLList.Count);
|
||||||
|
|
||||||
_GLList.Clear();
|
_GLList.Clear();
|
||||||
|
|
||||||
_Run = CGraphics.UpdateGameLogic(_Keys, _Mouse);
|
_Run = CGraphics.UpdateGameLogic(_Keys, _Mouse);
|
||||||
@@ -1437,6 +1440,7 @@ namespace Vocaluxe.Lib.Draw
|
|||||||
texture.TexturePath = String.Empty;
|
texture.TexturePath = String.Empty;
|
||||||
|
|
||||||
_Textures[index] = texture;
|
_Textures[index] = texture;
|
||||||
|
q.data = null;
|
||||||
_Queque.RemoveAt(0);
|
_Queque.RemoveAt(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user