diff options
author | Pierre-Eric Pelloux-Prayer <[email protected]> | 2011-05-31 13:33:54 +0200 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-06-02 17:55:48 -0600 |
commit | 09201cc7a0c4c50871bb8aa5d00ac70aa4e9e670 (patch) | |
tree | 909a5789f5fb355f1b4dfd569d0f93b66ff7ca89 /src/mesa/main/api_validate.c | |
parent | 0dae94610e0b70b353fd0b018833bb7c8d013abb (diff) |
mesa: add implementation of glDrawElementsInstancedBaseVertex
Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/api_validate.c')
-rw-r--r-- | src/mesa/main/api_validate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/api_validate.c b/src/mesa/main/api_validate.c index 993519f61b2..2981d42297a 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; |