mesa: add KHR_no_error support for glVertexArrayVertexBuffer()
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
This commit is contained in:
@@ -599,7 +599,7 @@
|
||||
<param name="buffer" type="GLuint" />
|
||||
</function>
|
||||
|
||||
<function name="VertexArrayVertexBuffer">
|
||||
<function name="VertexArrayVertexBuffer" no_error="true">
|
||||
<param name="vaobj" type="GLuint" />
|
||||
<param name="bindingindex" type="GLuint" />
|
||||
<param name="buffer" type="GLuint" />
|
||||
|
||||
@@ -2082,6 +2082,19 @@ _mesa_BindVertexBuffer(GLuint bindingIndex, GLuint buffer, GLintptr offset,
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_VertexArrayVertexBuffer_no_error(GLuint vaobj, GLuint bindingIndex,
|
||||
GLuint buffer, GLintptr offset,
|
||||
GLsizei stride)
|
||||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
struct gl_vertex_array_object *vao = _mesa_lookup_vao(ctx, vaobj);
|
||||
vertex_array_vertex_buffer(ctx, vao, bindingIndex, buffer, offset,
|
||||
stride, true, "glVertexArrayVertexBuffer");
|
||||
}
|
||||
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_VertexArrayVertexBuffer(GLuint vaobj, GLuint bindingIndex, GLuint buffer,
|
||||
GLintptr offset, GLsizei stride)
|
||||
|
||||
@@ -367,6 +367,10 @@ extern void GLAPIENTRY
|
||||
_mesa_BindVertexBuffer(GLuint bindingIndex, GLuint buffer, GLintptr offset,
|
||||
GLsizei stride);
|
||||
|
||||
void GLAPIENTRY
|
||||
_mesa_VertexArrayVertexBuffer_no_error(GLuint vaobj, GLuint bindingIndex,
|
||||
GLuint buffer, GLintptr offset,
|
||||
GLsizei stride);
|
||||
extern void GLAPIENTRY
|
||||
_mesa_VertexArrayVertexBuffer(GLuint vaobj, GLuint bindingIndex, GLuint buffer,
|
||||
GLintptr offset, GLsizei stride);
|
||||
|
||||
Reference in New Issue
Block a user