fixes DrawIndexedPrimitives when indices.Start != 0

This commit is contained in:
Bob
2010-02-16 18:07:46 +13:00
parent 036e8bfb85
commit e015707ca2

View File

@@ -108,7 +108,7 @@ namespace OpenRa.GlRenderer
public void DrawIndexedPrimitives(PrimitiveType pt, Range<int> vertices, Range<int> indices)
{
Gl.glDrawElements((int)pt, indices.End - indices.Start, Gl.GL_UNSIGNED_SHORT, new IntPtr( indices.Start ));
Gl.glDrawElements( (int)pt, indices.End - indices.Start, Gl.GL_UNSIGNED_SHORT, new IntPtr( indices.Start * 2 ) );
CheckGlError();
}