call all display lists at once

This commit is contained in:
Alexander Eckart committed 2012-03-15 19:12:48 +01:00
1 parent 10e996c96c
commit 7075e29e0e
1 file changed
+3 -4
+3 -4
View File
@@ -460,10 +460,9 @@ namespace Vocaluxe.Lib.Draw
ClearScreen();
_Run = _Run && CGraphics.Draw();
foreach (int list in _GLList)
{
GL.CallList(list);
}
GL.CallLists(_GLList.Count, ListNameType.Int, _GLList.ToArray());
if (_GLList.Count > 0)
GL.DeleteLists(_GLList[0], _GLList.Count);