-
/*
* Mesa 3-D graphics library
- * Version: 5.1
+ * Version: 6.1
*
- * Copyright (C) 1999-2003 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
return;
glBegin(mode);
- for (i = start ; i < count ; i++)
- glArrayElement( i );
+ for (i = 0; i < count; i++)
+ glArrayElement(start + i);
glEnd();
}
_mesa_update_state(ctx);
/* Always need vertex positions */
- if (!ctx->Array.Vertex.Enabled
- && !(ctx->VertexProgram.Enabled && ctx->Array.VertexAttrib[0].Enabled))
+ if (!ctx->Array.Vertex.Enabled && !ctx->Array.VertexAttrib[0].Enabled)
return GL_FALSE;
if (ctx->Const.CheckArrayBounds) {
return;
_save_NotifyBegin( ctx, mode | PRIM_WEAK );
- for (i = start ; i < count ; i++)
- _glapi_Dispatch->ArrayElement( i );
+ for (i = 0; i < count; i++)
+ _glapi_Dispatch->ArrayElement(start + i);
_glapi_Dispatch->End();
}