diff options
author | Samuel Pitoiset <[email protected]> | 2017-07-18 15:39:13 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-07-31 13:53:39 +0200 |
commit | 0e69fc92e2bc9cf5e9083378ba536fc87de88221 (patch) | |
tree | 9a4aba8a2b3b2ddad8f302e1f6f3db81209bb8cb /src/mesa | |
parent | a466b742415aeefa3e46356c8a0b7547cc52c377 (diff) |
mesa: add KHR_no_error support to glVertexArrayBindingDivisor()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/varray.c | 11 | ||||
-rw-r--r-- | src/mesa/main/varray.h | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 9cc995ea55b..db9261f1058 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -2744,6 +2744,17 @@ _mesa_VertexBindingDivisor(GLuint bindingIndex, GLuint divisor) void GLAPIENTRY +_mesa_VertexArrayBindingDivisor_no_error(GLuint vaobj, GLuint bindingIndex, + GLuint divisor) +{ + GET_CURRENT_CONTEXT(ctx); + + struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); + vertex_binding_divisor(ctx, vao, VERT_ATTRIB_GENERIC(bindingIndex), divisor); +} + + +void GLAPIENTRY _mesa_VertexArrayBindingDivisor(GLuint vaobj, GLuint bindingIndex, GLuint divisor) { diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index 4db9eee0e50..182fb544f69 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -458,6 +458,10 @@ _mesa_VertexBindingDivisor_no_error(GLuint bindingIndex, GLuint divisor); extern void GLAPIENTRY _mesa_VertexBindingDivisor(GLuint bindingIndex, GLuint divisor); +void GLAPIENTRY +_mesa_VertexArrayBindingDivisor_no_error(GLuint vaobj, GLuint bindingIndex, + GLuint divisor); + extern void GLAPIENTRY _mesa_VertexArrayBindingDivisor(GLuint vaobj, GLuint bindingIndex, GLuint divisor); |