From: Timothy Arceri Date: Wed, 28 Jun 2017 04:09:22 +0000 (+1000) Subject: mesa: add KHR_no_error support for glDisableVertexA*A*() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8143a4bde01dcbef7d5099fcdde6a810ca2d99a;p=mesa.git mesa: add KHR_no_error support for glDisableVertexA*A*() Reviewed-by: Samuel Pitoiset --- diff --git a/src/mapi/glapi/gen/ARB_direct_state_access.xml b/src/mapi/glapi/gen/ARB_direct_state_access.xml index 00f3db6a7d5..cf33ee38732 100644 --- a/src/mapi/glapi/gen/ARB_direct_state_access.xml +++ b/src/mapi/glapi/gen/ARB_direct_state_access.xml @@ -584,7 +584,7 @@ - + diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index c685580314b..8a8f15b9dd4 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -5340,7 +5340,7 @@ - + diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index fcc9a31c896..c67396d7e79 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -1169,6 +1169,14 @@ _mesa_DisableVertexAttribArray(GLuint index) } +void GLAPIENTRY +_mesa_DisableVertexAttribArray_no_error(GLuint index) +{ + GET_CURRENT_CONTEXT(ctx); + disable_vertex_array_attrib(ctx, ctx->Array.VAO, index); +} + + void GLAPIENTRY _mesa_DisableVertexArrayAttrib(GLuint vaobj, GLuint index) { @@ -1195,6 +1203,15 @@ _mesa_DisableVertexArrayAttrib(GLuint vaobj, GLuint index) } +void GLAPIENTRY +_mesa_DisableVertexArrayAttrib_no_error(GLuint vaobj, GLuint index) +{ + GET_CURRENT_CONTEXT(ctx); + struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj); + disable_vertex_array_attrib(ctx, vao, index); +} + + /** * Return info for a vertex attribute array (no alias with legacy * vertex attributes (pos, normal, color, etc)). This function does diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index be8abf96aeb..ca49042653c 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -238,10 +238,16 @@ _mesa_EnableVertexArrayAttrib_no_error(GLuint vaobj, GLuint index); extern void GLAPIENTRY _mesa_DisableVertexAttribArray(GLuint index); +extern void GLAPIENTRY +_mesa_DisableVertexAttribArray_no_error(GLuint index); + extern void GLAPIENTRY _mesa_DisableVertexArrayAttrib(GLuint vaobj, GLuint index); +extern void GLAPIENTRY +_mesa_DisableVertexArrayAttrib_no_error(GLuint vaobj, GLuint index); + extern void GLAPIENTRY _mesa_GetVertexAttribdv(GLuint index, GLenum pname, GLdouble *params);