From 08cecec3c0053ea9b95ac38a05da672bf05af19a Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 24 Aug 2017 12:02:40 +0200 Subject: mesa: add KHR_no_error support to glEndTransformFeedback() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mesa/main/transformfeedback.c | 8 ++++++++ src/mesa/main/transformfeedback.h | 3 +++ 2 files changed, 11 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index d1d695ce485..8e6ea9c9ca2 100644 --- a/src/mesa/main/transformfeedback.c +++ b/src/mesa/main/transformfeedback.c @@ -511,6 +511,14 @@ end_transform_feedback(struct gl_context *ctx, } +void GLAPIENTRY +_mesa_EndTransformFeedback_no_error(void) +{ + GET_CURRENT_CONTEXT(ctx); + end_transform_feedback(ctx, ctx->TransformFeedback.CurrentObject); +} + + void GLAPIENTRY _mesa_EndTransformFeedback(void) { diff --git a/src/mesa/main/transformfeedback.h b/src/mesa/main/transformfeedback.h index 6f28d817ab6..148a7767be1 100644 --- a/src/mesa/main/transformfeedback.h +++ b/src/mesa/main/transformfeedback.h @@ -59,6 +59,9 @@ _mesa_BeginTransformFeedback_no_error(GLenum mode); extern void GLAPIENTRY _mesa_BeginTransformFeedback(GLenum mode); +void GLAPIENTRY +_mesa_EndTransformFeedback_no_error(void); + extern void GLAPIENTRY _mesa_EndTransformFeedback(void); -- cgit v1.2.3