From 7075e29e0ea821bcc2a196a51511b5391231c95c Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Thu, 15 Mar 2012 19:12:48 +0100 Subject: [PATCH] call all display lists at once --- Vocaluxe/Lib/Draw/COpenGL.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Vocaluxe/Lib/Draw/COpenGL.cs b/Vocaluxe/Lib/Draw/COpenGL.cs index 5564610d..1492f0c0 100644 --- a/Vocaluxe/Lib/Draw/COpenGL.cs +++ b/Vocaluxe/Lib/Draw/COpenGL.cs @@ -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);