Updated GL.DrawElements to use DrawElementsType instead of Enums.All

This commit is contained in:
the_fiddler 2008-01-15 00:10:31 +00:00
parent 66f2143856
commit 6fec7ae4b1

View file

@ -60,7 +60,7 @@ namespace OpenTK.Fonts
GL.TexCoordPointer(2, TexCoordPointerType.Float, vector2_size, (IntPtr)vector2_size); GL.TexCoordPointer(2, TexCoordPointerType.Float, vector2_size, (IntPtr)vector2_size);
GL.VertexPointer(2, VertexPointerType.Float, vector2_size, IntPtr.Zero); 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.DrawArrays(BeginMode.LineLoop, 0, vbo.element_count);
GL.BindBuffer(BufferTarget.ArrayBuffer, 0); GL.BindBuffer(BufferTarget.ArrayBuffer, 0);