From 65500986a272de56cffdcea13f1c805ae152f63c Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 19 Jun 2009 13:06:39 +0000 Subject: [PATCH] Applied GL1TextOutputProvider.Clear() fix from 0.9.8 branch. --- Source/Utilities/Graphics/Text/GL1TextOutputProvider.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Utilities/Graphics/Text/GL1TextOutputProvider.cs b/Source/Utilities/Graphics/Text/GL1TextOutputProvider.cs index 58d72a24..fd7c9d8c 100644 --- a/Source/Utilities/Graphics/Text/GL1TextOutputProvider.cs +++ b/Source/Utilities/Graphics/Text/GL1TextOutputProvider.cs @@ -205,6 +205,9 @@ namespace OpenTK.Graphics.Text public void Clear() { Cache.Clear(); + foreach (int display_list in block_cache.Keys) + GL.DeleteLists(display_list, 1); + block_cache.Clear(); } #endregion