mesa: add KHR_no_error support to glPauseTransformFeedback()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 24 Aug 2017 10:06:26 +0000 (12:06 +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/EXT_transform_feedback.xml
src/mesa/main/transformfeedback.c
src/mesa/main/transformfeedback.h

index 2f893960c56c1f8f8ef25ed29c042de2a0696d85..b5ba580388632e06318f9ba8ac1e970c5b1a47e3 100644 (file)
     <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">
index 633b629a9d095941f642b32074197b95409bbb71..c7db48c593b0b3b14cbc333d36c128ab6f0f1f45 100644 (file)
@@ -1207,6 +1207,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)
 {
index 148a7767be117977fe15bc8739f4739f461ed7da..645b71862c20d34dfd72af2eb4368f1e32272966 100644 (file)
@@ -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);