diff options
author | Samuel Pitoiset <[email protected]> | 2017-05-31 12:42:39 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-07 11:03:47 +0200 |
commit | 2933ed56cef8804be4179d68704614735b92fee4 (patch) | |
tree | 881d54b57d7c9046ae191b66c32e7f5dbcf01f64 /src/mesa | |
parent | 5da83140dfdb1c6109f061ec28ba5f0e705dd09e (diff) |
mesa: add KHR_no_error support for glBindVertexBuffers()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/varray.c | 13 | ||||
-rw-r--r-- | src/mesa/main/varray.h | 5 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 0cc8b56c641..a08b11fcf8d 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -2249,6 +2249,19 @@ vertex_array_vertex_buffers_err(struct gl_context *ctx, void GLAPIENTRY +_mesa_BindVertexBuffers_no_error(GLuint first, GLsizei count, + const GLuint *buffers, const GLintptr *offsets, + const GLsizei *strides) +{ + GET_CURRENT_CONTEXT(ctx); + + vertex_array_vertex_buffers(ctx, ctx->Array.VAO, first, count, + buffers, offsets, strides, true, + "glBindVertexBuffers"); +} + + +void GLAPIENTRY _mesa_BindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides) { diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index 90ca8483cab..43b9fe905ef 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -375,6 +375,11 @@ extern void GLAPIENTRY _mesa_VertexArrayVertexBuffer(GLuint vaobj, GLuint bindingIndex, GLuint buffer, GLintptr offset, GLsizei stride); +void GLAPIENTRY +_mesa_BindVertexBuffers_no_error(GLuint first, GLsizei count, + const GLuint *buffers, const GLintptr *offsets, + const GLsizei *strides); + extern void GLAPIENTRY _mesa_BindVertexBuffers(GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides); |