[Mesa-dev] [PATCH 035/101] mesa: add KHR_no_error to glBindVertexArray()

Samuel Pitoiset samuel.pitoiset at gmail.com
Fri Jul 21 17:39:44 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mapi/glapi/gen/ARB_vertex_array_object.xml | 2 +-
 src/mesa/main/arrayobj.c                       | 8 ++++++++
 src/mesa/main/arrayobj.h                       | 3 +++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/mapi/glapi/gen/ARB_vertex_array_object.xml b/src/mapi/glapi/gen/ARB_vertex_array_object.xml
index 57eaa1d3ff..c703477576 100644
--- a/src/mapi/glapi/gen/ARB_vertex_array_object.xml
+++ b/src/mapi/glapi/gen/ARB_vertex_array_object.xml
@@ -10,7 +10,7 @@
 
     <enum name="VERTEX_ARRAY_BINDING" value="0x85B5"/>
 
-    <function name="BindVertexArray" es2="3.0"
+    <function name="BindVertexArray" es2="3.0" no_error="true"
               marshal_fail="_mesa_glthread_is_compat_bind_vertex_array(ctx)">
         <param name="array" type="GLuint"/>
     </function>
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c
index fcc7990ef0..77c0206ecf 100644
--- a/src/mesa/main/arrayobj.c
+++ b/src/mesa/main/arrayobj.c
@@ -445,6 +445,14 @@ bind_vertex_array(struct gl_context *ctx, GLuint id, bool no_error)
 
 
 void GLAPIENTRY
+_mesa_BindVertexArray_no_error(GLuint id)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   bind_vertex_array(ctx, id, true);
+}
+
+
+void GLAPIENTRY
 _mesa_BindVertexArray(GLuint id)
 {
    GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/arrayobj.h b/src/mesa/main/arrayobj.h
index 69ffc9250d..5d7fb0a087 100644
--- a/src/mesa/main/arrayobj.h
+++ b/src/mesa/main/arrayobj.h
@@ -94,6 +94,9 @@ _mesa_all_buffers_are_unmapped(const struct gl_vertex_array_object *vao);
  */
 
 
+void GLAPIENTRY
+_mesa_BindVertexArray_no_error(GLuint id);
+
 void GLAPIENTRY _mesa_BindVertexArray( GLuint id );
 
 void GLAPIENTRY _mesa_DeleteVertexArrays(GLsizei n, const GLuint *ids);
-- 
2.13.3



More information about the mesa-dev mailing list