mesa: add KHR_no_error support to glBindBufferOffsetEXT()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 24 Aug 2017 09:36:45 +0000 (11:36 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 25 Aug 2017 09:35:30 +0000 (11:35 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/EXT_transform_feedback.xml
src/mesa/main/transformfeedback.c
src/mesa/main/transformfeedback.h

index 7be87f710a858f756ba01f544508f16ddc76aef1..26948cc7bdd8d620c68768aa592a818cee42b6f2 100644 (file)
@@ -32,7 +32,7 @@
     <param name="size" type="GLsizeiptr"/>
   </function>
 
-  <function name="BindBufferOffsetEXT">
+  <function name="BindBufferOffsetEXT" no_error="true">
     <param name="target" type="GLenum"/>
     <param name="index" type="GLuint"/>
     <param name="buffer" type="GLuint"/>
index 44a6e149dbaa7793237d803b4d7564cd2f71f3ee..befc74444c5283ef48a226f3f0794b7ef4fcb260 100644 (file)
@@ -801,6 +801,16 @@ bind_buffer_offset(struct gl_context *ctx,
 }
 
 
+void GLAPIENTRY
+_mesa_BindBufferOffsetEXT_no_error(GLenum target, GLuint index, GLuint buffer,
+                                   GLintptr offset)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   bind_buffer_offset(ctx, ctx->TransformFeedback.CurrentObject, index, buffer,
+                      offset, true);
+}
+
+
 void GLAPIENTRY
 _mesa_BindBufferOffsetEXT(GLenum target, GLuint index, GLuint buffer,
                           GLintptr offset)
index cc798878b530a9e536bfe22d3c23213a9d84c790..78a6c3377dd00abb24c6a60942855ee32deb68b3 100644 (file)
@@ -78,6 +78,10 @@ _mesa_bind_buffer_base_transform_feedback(struct gl_context *ctx,
                                          struct gl_buffer_object *bufObj,
                                          bool dsa);
 
+void GLAPIENTRY
+_mesa_BindBufferOffsetEXT_no_error(GLenum target, GLuint index, GLuint buffer,
+                                   GLintptr offset);
+
 extern void GLAPIENTRY
 _mesa_BindBufferOffsetEXT(GLenum target, GLuint index, GLuint buffer,
                           GLintptr offset);