summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/api_validate.c
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pelloux@gmail.com>2011-05-31 13:33:54 +0200
committerBrian Paul <brianp@vmware.com>2011-06-02 17:55:48 -0600
commit09201cc7a0c4c50871bb8aa5d00ac70aa4e9e670 (patch)
tree909a5789f5fb355f1b4dfd569d0f93b66ff7ca89 /src/mesa/main/api_validate.c
parent0dae94610e0b70b353fd0b018833bb7c8d013abb (diff)
downloadexternal_mesa3d-09201cc7a0c4c50871bb8aa5d00ac70aa4e9e670.zip
external_mesa3d-09201cc7a0c4c50871bb8aa5d00ac70aa4e9e670.tar.gz
external_mesa3d-09201cc7a0c4c50871bb8aa5d00ac70aa4e9e670.tar.bz2
mesa: add implementation of glDrawElementsInstancedBaseVertex
Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r--src/mesa/main/api_validate.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c
index 993519f..2981d42 100644
--- a/src/mesa/main/api_validate.c
+++ b/src/mesa/main/api_validate.c
@@ -396,7 +396,8 @@ _mesa_validate_DrawArraysInstanced(struct gl_context *ctx, GLenum mode, GLint fi
GLboolean
_mesa_validate_DrawElementsInstanced(struct gl_context *ctx,
GLenum mode, GLsizei count, GLenum type,
- const GLvoid *indices, GLsizei numInstances)
+ const GLvoid *indices, GLsizei numInstances,
+ GLint basevertex)
{
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
@@ -447,7 +448,7 @@ _mesa_validate_DrawElementsInstanced(struct gl_context *ctx,
return GL_FALSE;
}
- if (!check_index_bounds(ctx, count, type, indices, 0))
+ if (!check_index_bounds(ctx, count, type, indices, basevertex))
return GL_FALSE;
return GL_TRUE;