mesa: add KHR_no_error support to glBindTransformFeedback()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 24 Aug 2017 09:41:15 +0000 (11:41 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 25 Aug 2017 09:24:17 +0000 (11:24 +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 bbb44866f91ccf97c2657f53a40b1afdff9bcfaf..2f893960c56c1f8f8ef25ed29c042de2a0696d85 100644 (file)
@@ -82,7 +82,7 @@
   <enum name="TRANSFORM_FEEDBACK_BUFFER_ACTIVE"    value="0x8E24"/>
   <enum name="TRANSFORM_FEEDBACK_BINDING"          value="0x8E25"/>
 
-  <function name="BindTransformFeedback" es2="3.0">
+  <function name="BindTransformFeedback" es2="3.0" no_error="true">
     <param name="target" type="GLenum"/>
     <param name="id" type="GLuint"/>
   </function>
index d61db4eb62811ca4c8b776060a49130b38ae38ac..307728c3995b2f9cc00ca2626f00c62b53670880 100644 (file)
@@ -1079,6 +1079,14 @@ bind_transform_feedback(struct gl_context *ctx, GLuint name, bool no_error)
 }
 
 
+void GLAPIENTRY
+_mesa_BindTransformFeedback_no_error(GLenum target, GLuint name)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   bind_transform_feedback(ctx, name, true);
+}
+
+
 void GLAPIENTRY
 _mesa_BindTransformFeedback(GLenum target, GLuint name)
 {
index c59ade7f0a8aa29cfac158c61d0c9729f3f7e5bf..47639bb56fd4a8f906101013376bead6f444746d 100644 (file)
@@ -105,6 +105,9 @@ _mesa_CreateTransformFeedbacks(GLsizei n, GLuint *names);
 extern GLboolean GLAPIENTRY
 _mesa_IsTransformFeedback(GLuint name);
 
+void GLAPIENTRY
+_mesa_BindTransformFeedback_no_error(GLenum target, GLuint name);
+
 extern void GLAPIENTRY
 _mesa_BindTransformFeedback(GLenum target, GLuint name);