예제 #1
0
static void GLAPIENTRY
_mesa_noop_DrawRangeElementsBaseVertex(GLenum mode,
				       GLuint start, GLuint end,
				       GLsizei count, GLenum type,
				       const GLvoid *indices, GLint basevertex)
{
   GET_CURRENT_CONTEXT(ctx);

   if (_mesa_validate_DrawRangeElements( ctx, mode,
					 start, end,
					 count, type, indices, basevertex ))
      CALL_DrawElementsBaseVertex(GET_DISPATCH(), (mode, count, type, indices,
						   basevertex));
}
예제 #2
0
static void GLAPIENTRY
_save_OBE_MultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count,
                                      GLenum type,
                                      const GLvoid **indices,
                                      GLsizei primcount,
                                      const GLint *basevertex)
{
   GLsizei i;

   for (i = 0; i < primcount; i++) {
      if (count[i] > 0) {
	 CALL_DrawElementsBaseVertex(GET_DISPATCH(), (mode, count[i], type,
						      indices[i],
						      basevertex[i]));
      }
   }
}