mesa: add KHR_no_error support to glVertexArrayElementBuffer()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Jul 2017 13:45:01 +0000 (15:45 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:40 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_direct_state_access.xml
src/mesa/main/arrayobj.c
src/mesa/main/arrayobj.h

index 1c62ac6f2e46990b8a432f3235d1372631748080..7927a4e1f6f843e54032d793436317e2ec35ea8f 100644 (file)
       <param name="index" type="GLuint" />
    </function>
 
-   <function name="VertexArrayElementBuffer">
+   <function name="VertexArrayElementBuffer" no_error="true">
       <param name="vaobj" type="GLuint" />
       <param name="buffer" type="GLuint" />
    </function>
index 89fa473ff87cf984bc825fc9a79339d60517cbc1..600177cc5c950ab5435391ffaab88a3257a1d65b 100644 (file)
@@ -686,6 +686,14 @@ vertex_array_element_buffer(struct gl_context *ctx, GLuint vaobj, GLuint buffer,
 }
 
 
+void GLAPIENTRY
+_mesa_VertexArrayElementBuffer_no_error(GLuint vaobj, GLuint buffer)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   vertex_array_element_buffer(ctx, vaobj, buffer, true);
+}
+
+
 void GLAPIENTRY
 _mesa_VertexArrayElementBuffer(GLuint vaobj, GLuint buffer)
 {
index 691475fb2fd021a064b2860e1356414f21a6b59d..1b9900c6e55e16b8cef7af543b6e7ac60319d7a1 100644 (file)
@@ -116,6 +116,9 @@ void GLAPIENTRY _mesa_CreateVertexArrays(GLsizei n, GLuint *arrays);
 
 GLboolean GLAPIENTRY _mesa_IsVertexArray( GLuint id );
 
+void GLAPIENTRY
+_mesa_VertexArrayElementBuffer_no_error(GLuint vaobj, GLuint buffer);
+
 void GLAPIENTRY _mesa_VertexArrayElementBuffer(GLuint vaobj, GLuint buffer);
 
 void GLAPIENTRY _mesa_GetVertexArrayiv(GLuint vaobj, GLenum pname, GLint *param);