From ec870dc053b4fd3570c8ab8197865ce95927b440 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Tue, 15 Jan 2008 00:10:31 +0000 Subject: [PATCH] Updated GL.DrawElements to use DrawElementsType instead of Enums.All --- Source/OpenTK/Fonts/VboTextPrinter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/OpenTK/Fonts/VboTextPrinter.cs b/Source/OpenTK/Fonts/VboTextPrinter.cs index 7e0daef1..e1f7b46a 100644 --- a/Source/OpenTK/Fonts/VboTextPrinter.cs +++ b/Source/OpenTK/Fonts/VboTextPrinter.cs @@ -60,7 +60,7 @@ namespace OpenTK.Fonts GL.TexCoordPointer(2, TexCoordPointerType.Float, vector2_size, (IntPtr)vector2_size); GL.VertexPointer(2, VertexPointerType.Float, vector2_size, IntPtr.Zero); - GL.DrawElements(BeginMode.Triangles, vbo.element_count, All.UnsignedShort, IntPtr.Zero); + GL.DrawElements(BeginMode.Triangles, vbo.element_count, DrawElementsType.UnsignedShort, IntPtr.Zero); //GL.DrawArrays(BeginMode.LineLoop, 0, vbo.element_count); GL.BindBuffer(BufferTarget.ArrayBuffer, 0);