[Mesa-dev] [PATCH 06/14] mesa: add KHR_no_error support to glEndTransformFeedback()

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Aug 24 13:21:14 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mapi/glapi/gen/GL3x.xml       | 2 +-
 src/mesa/main/transformfeedback.c | 8 ++++++++
 src/mesa/main/transformfeedback.h | 3 +++
 3 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml
index 54e99e7db9..3a1bfb8fa2 100644
--- a/src/mapi/glapi/gen/GL3x.xml
+++ b/src/mapi/glapi/gen/GL3x.xml
@@ -210,7 +210,7 @@
     <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">
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index b32d0e6c53..2d33555f35 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -507,6 +507,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)
 {
diff --git a/src/mesa/main/transformfeedback.h b/src/mesa/main/transformfeedback.h
index 6f28d817ab..148a7767be 100644
--- a/src/mesa/main/transformfeedback.h
+++ b/src/mesa/main/transformfeedback.h
@@ -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);
 
-- 
2.14.1



More information about the mesa-dev mailing list