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

index 54e99e7db92739279b625532bd23939d0c47988c..3a1bfb8fa2c1d285e96bf264ee2d56eb65b4a48c 100644 (file)
     <param name="mode" type="GLenum"/>
   </function>
 
-  <function name="EndTransformFeedback" es2="3.0">
+  <function name="EndTransformFeedback" es2="3.0" no_error="true">
   </function>
 
   <function name="BindBufferRange" es2="3.0" no_error="true">
index d1d695ce485cb00ccdff60b2a8305652f617958b..8e6ea9c9ca2d93cf80fb4f1f9a0195530c9e0c59 100644 (file)
@@ -511,6 +511,14 @@ end_transform_feedback(struct gl_context *ctx,
 }
 
 
+void GLAPIENTRY
+_mesa_EndTransformFeedback_no_error(void)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   end_transform_feedback(ctx, ctx->TransformFeedback.CurrentObject);
+}
+
+
 void GLAPIENTRY
 _mesa_EndTransformFeedback(void)
 {
index 6f28d817ab692de789497dbc9c3bc6830537b59c..148a7767be117977fe15bc8739f4739f461ed7da 100644 (file)
@@ -59,6 +59,9 @@ _mesa_BeginTransformFeedback_no_error(GLenum mode);
 extern void GLAPIENTRY
 _mesa_BeginTransformFeedback(GLenum mode);
 
+void GLAPIENTRY
+_mesa_EndTransformFeedback_no_error(void);
+
 extern void GLAPIENTRY
 _mesa_EndTransformFeedback(void);