if (!useVBO)\r
{\r
Vertex[] verts = face.Vertices.ToArray();\r
+ ushort[] indices = face.Indices.ToArray();\r
\r
unsafe\r
{\r
GL.NormalPointer(NormalPointerType.Float, FaceData.VertexSize, (IntPtr)normalPtr);\r
GL.TexCoordPointer(2, TexCoordPointerType.Float, FaceData.VertexSize, (IntPtr)texPtr);\r
GL.VertexPointer(3, VertexPointerType.Float, FaceData.VertexSize, verts);\r
- GL.DrawElements(BeginMode.Triangles, data.Indices.Length, DrawElementsType.UnsignedShort, data.Indices);\r
+ GL.DrawElements(BeginMode.Triangles, indices.Length, DrawElementsType.UnsignedShort, indices);\r
}\r
}\r
}\r