aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-05-22 15:46:55 +1000
committerTimothy Arceri <[email protected]>2017-05-30 08:03:32 +1000
commit85e891283ccbc268d2dae017a9942bb077fc0546 (patch)
tree56e34f1bc8e3b759cc6ced853c3a004e5583bc4b /src/mesa
parent9d331739ae72c5678701c8b1b5d0f460c6e2c857 (diff)
mesa: add KHR_no_error support for glVertexArrayVertexBuffer()
Reviewed-by: Iago Toral Quiroga <[email protected]> Tested-by: Dieter Nützel <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/varray.c13
-rw-r--r--src/mesa/main/varray.h4
2 files changed, 17 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index df14a8b765c..47528ba2a79 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -2083,6 +2083,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)
{
diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h
index c3cd5d207c4..24e37a9bf7e 100644
--- a/src/mesa/main/varray.h
+++ b/src/mesa/main/varray.h
@@ -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);