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

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


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mapi/glapi/gen/EXT_transform_feedback.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/EXT_transform_feedback.xml b/src/mapi/glapi/gen/EXT_transform_feedback.xml
index 2f893960c5..b5ba580388 100644
--- a/src/mapi/glapi/gen/EXT_transform_feedback.xml
+++ b/src/mapi/glapi/gen/EXT_transform_feedback.xml
@@ -102,7 +102,7 @@
     <return type="GLboolean"/>
   </function>
 
-  <function name="PauseTransformFeedback" es2="3.0">
+  <function name="PauseTransformFeedback" es2="3.0" no_error="true">
   </function>
 
   <function name="ResumeTransformFeedback" es2="3.0">
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index 2da7f635ba..d274a39cfa 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -1203,6 +1203,14 @@ pause_transform_feedback(struct gl_context *ctx,
 }
 
 
+void GLAPIENTRY
+_mesa_PauseTransformFeedback_no_error(void)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   pause_transform_feedback(ctx, ctx->TransformFeedback.CurrentObject);
+}
+
+
 void GLAPIENTRY
 _mesa_PauseTransformFeedback(void)
 {
diff --git a/src/mesa/main/transformfeedback.h b/src/mesa/main/transformfeedback.h
index 148a7767be..645b71862c 100644
--- a/src/mesa/main/transformfeedback.h
+++ b/src/mesa/main/transformfeedback.h
@@ -120,6 +120,9 @@ _mesa_BindTransformFeedback(GLenum target, GLuint name);
 extern void GLAPIENTRY
 _mesa_DeleteTransformFeedbacks(GLsizei n, const GLuint *names);
 
+void GLAPIENTRY
+_mesa_PauseTransformFeedback_no_error(void);
+
 extern void GLAPIENTRY
 _mesa_PauseTransformFeedback(void);
 
-- 
2.14.1



More information about the mesa-dev mailing list