mesa: add KHR_no_error support to glResumeTransformFeedback()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 24 Aug 2017 10:10:57 +0000 (12:10 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 25 Aug 2017 09:35:30 +0000 (11:35 +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 b5ba580388632e06318f9ba8ac1e970c5b1a47e3..7be87f710a858f756ba01f544508f16ddc76aef1 100644 (file)
   <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">
index 02867b5b8906b458ae6b4ec79209f6524c587a14..b2cf30cedbdb6dcac30b14b1a4f1b32ffe6358cd 100644 (file)
@@ -1251,6 +1251,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)
 {
index 645b71862c20d34dfd72af2eb4368f1e32272966..930c88a1f2b5d173a29567709e39706922ca6a49 100644 (file)
@@ -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);