mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-16 18:00:36 +01:00
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:
parent
9d331739ae
commit
85e891283c
3 changed files with 18 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue