mesa: add KHR_no_error support for glBindBuffer()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 31 May 2017 12:26:20 +0000 (14:26 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 7 Jun 2017 09:03:54 +0000 (11:03 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/bufferobj.c
src/mesa/main/bufferobj.h

index df999248c8e5e20f65d6c4102bcf67daa15060e0..5058c8c7779548a4cec3fcd25a778be173127fd1 100644 (file)
     <type name="intptr"   size="4"                  glx_name="CARD32"/>
     <type name="sizeiptr" size="4"  unsigned="true" glx_name="CARD32"/>
 
-    <function name="BindBuffer" es1="1.1" es2="2.0" marshal="custom">
+    <function name="BindBuffer" es1="1.1" es2="2.0" marshal="custom" no_error="true">
         <param name="target" type="GLenum"/>
         <param name="buffer" type="GLuint"/>
         <glx ignore="true"/>
index 9304308eabf68707cdcb744ce17f4d0383077011..e66a3a566889f3ee6cf9da5be2abe15298b65e94 100644 (file)
@@ -1228,6 +1228,16 @@ _mesa_buffer_unmap_all_mappings(struct gl_context *ctx,
 /* API Functions                                                      */
 /**********************************************************************/
 
+void GLAPIENTRY
+_mesa_BindBuffer_no_error(GLenum target, GLuint buffer)
+{
+   GET_CURRENT_CONTEXT(ctx);
+
+   struct gl_buffer_object **bindTarget = get_buffer_target(ctx, target);
+   bind_buffer_object(ctx, bindTarget, buffer);
+}
+
+
 void GLAPIENTRY
 _mesa_BindBuffer(GLenum target, GLuint buffer)
 {
index a8e174dc6b1c0b7d7905a54bb51f179806eda446..44342840a81865af6dacdfc9375fea0de751d364 100644 (file)
@@ -155,6 +155,9 @@ _mesa_ClearBufferSubData_sw(struct gl_context *ctx,
 /*
  * API functions
  */
+void GLAPIENTRY
+_mesa_BindBuffer_no_error(GLenum target, GLuint buffer);
+
 void GLAPIENTRY
 _mesa_BindBuffer(GLenum target, GLuint buffer);