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

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Aug 24 13:21:18 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 b5ba580388..7be87f710a 100644
--- a/src/mapi/glapi/gen/EXT_transform_feedback.xml
+++ b/src/mapi/glapi/gen/EXT_transform_feedback.xml
@@ -105,7 +105,7 @@
   <function name="PauseTransformFeedback" es2="3.0" no_error="true">
   </function>
 
-  <function name="ResumeTransformFeedback" es2="3.0">
+  <function name="ResumeTransformFeedback" es2="3.0" no_error="true">
   </function>
 
   <function name="DrawTransformFeedback" exec="dynamic" marshal="draw">
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index a558c47470..a0bb088f34 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -1247,6 +1247,14 @@ resume_transform_feedback(struct gl_context *ctx,
 }
 
 
+void GLAPIENTRY
+_mesa_ResumeTransformFeedback_no_error(void)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   resume_transform_feedback(ctx, ctx->TransformFeedback.CurrentObject);
+}
+
+
 void GLAPIENTRY
 _mesa_ResumeTransformFeedback(void)
 {
diff --git a/src/mesa/main/transformfeedback.h b/src/mesa/main/transformfeedback.h
index 645b71862c..930c88a1f2 100644
--- a/src/mesa/main/transformfeedback.h
+++ b/src/mesa/main/transformfeedback.h
@@ -126,6 +126,9 @@ _mesa_PauseTransformFeedback_no_error(void);
 extern void GLAPIENTRY
 _mesa_PauseTransformFeedback(void);
 
+void GLAPIENTRY
+_mesa_ResumeTransformFeedback_no_error(void);
+
 extern void GLAPIENTRY
 _mesa_ResumeTransformFeedback(void);
 
-- 
2.14.1



More information about the mesa-dev mailing list