From: Samuel Pitoiset Date: Thu, 24 Aug 2017 09:57:55 +0000 (+0200) Subject: mesa: add KHR_no_error support to glBeginTransformFeedback() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3906e8ab6477af71e5c84cae17ee1efa1b9e541d;p=mesa.git mesa: add KHR_no_error support to glBeginTransformFeedback() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml index 8d10f78e824..54e99e7db92 100644 --- a/src/mapi/glapi/gen/GL3x.xml +++ b/src/mapi/glapi/gen/GL3x.xml @@ -206,7 +206,7 @@ - + diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index f59f5a3f76c..525c5b7a5b8 100644 --- a/src/mesa/main/transformfeedback.c +++ b/src/mesa/main/transformfeedback.c @@ -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) { diff --git a/src/mesa/main/transformfeedback.h b/src/mesa/main/transformfeedback.h index 47639bb56fd..6f28d817ab6 100644 --- a/src/mesa/main/transformfeedback.h +++ b/src/mesa/main/transformfeedback.h @@ -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);