From 3906e8ab6477af71e5c84cae17ee1efa1b9e541d Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 24 Aug 2017 11:57:55 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glBeginTransformFeedback() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/GL3x.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/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); -- 2.30.2