mesa: add KHR_no_error support to glBeginTransformFeedback()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 24 Aug 2017 09:57:55 +0000 (11:57 +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/GL3x.xml
src/mesa/main/transformfeedback.c
src/mesa/main/transformfeedback.h

index 8d10f78e82412a257606a05135581202b6a4c3b5..54e99e7db92739279b625532bd23939d0c47988c 100644 (file)
     <param name="name" type="const GLchar *"/>
   </function>
 
-  <function name="BeginTransformFeedback" es2="3.0">
+  <function name="BeginTransformFeedback" es2="3.0" no_error="true">
     <param name="mode" type="GLenum"/>
   </function>
 
index f59f5a3f76c82c0a14ef8d46bd30eb2ea749e6cd..525c5b7a5b80154a8ed285513df8f9f96f65377e 100644 (file)
@@ -479,6 +479,14 @@ begin_transform_feedback(struct gl_context *ctx, GLenum mode, bool no_error)
 }
 
 
+void GLAPIENTRY
+_mesa_BeginTransformFeedback_no_error(GLenum mode)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   begin_transform_feedback(ctx, mode, true);
+}
+
+
 void GLAPIENTRY
 _mesa_BeginTransformFeedback(GLenum mode)
 {
index 47639bb56fd4a8f906101013376bead6f444746d..6f28d817ab692de789497dbc9c3bc6830537b59c 100644 (file)
@@ -53,6 +53,9 @@ _mesa_compute_max_transform_feedback_vertices( struct gl_context *ctx,
 
 /*** GL_EXT_transform_feedback ***/
 
+void GLAPIENTRY
+_mesa_BeginTransformFeedback_no_error(GLenum mode);
+
 extern void GLAPIENTRY
 _mesa_BeginTransformFeedback(GLenum mode);