mesa: add KHR_no_error support to glVertexArrayElementBuffer()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Samuel Pitoiset
2017-07-19 15:45:01 +02:00
parent 1429b5cd59
commit d88d60ab1d
3 changed files with 12 additions and 1 deletions

View File

@@ -594,7 +594,7 @@
<param name="index" type="GLuint" />
</function>
<function name="VertexArrayElementBuffer">
<function name="VertexArrayElementBuffer" no_error="true">
<param name="vaobj" type="GLuint" />
<param name="buffer" type="GLuint" />
</function>

View File

@@ -686,6 +686,14 @@ vertex_array_element_buffer(struct gl_context *ctx, GLuint vaobj, GLuint buffer,
}
void GLAPIENTRY
_mesa_VertexArrayElementBuffer_no_error(GLuint vaobj, GLuint buffer)
{
GET_CURRENT_CONTEXT(ctx);
vertex_array_element_buffer(ctx, vaobj, buffer, true);
}
void GLAPIENTRY
_mesa_VertexArrayElementBuffer(GLuint vaobj, GLuint buffer)
{

View File

@@ -116,6 +116,9 @@ void GLAPIENTRY _mesa_CreateVertexArrays(GLsizei n, GLuint *arrays);
GLboolean GLAPIENTRY _mesa_IsVertexArray( GLuint id );
void GLAPIENTRY
_mesa_VertexArrayElementBuffer_no_error(GLuint vaobj, GLuint buffer);
void GLAPIENTRY _mesa_VertexArrayElementBuffer(GLuint vaobj, GLuint buffer);
void GLAPIENTRY _mesa_GetVertexArrayiv(GLuint vaobj, GLenum pname, GLint *param);