From 1c88ed9558ef38a1334cb63bff16af0c19e69054 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 24 Aug 2017 12:06:26 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glPauseTransformFeedback() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/EXT_transform_feedback.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/EXT_transform_feedback.xml b/src/mapi/glapi/gen/EXT_transform_feedback.xml index 2f893960c56..b5ba5803886 100644 --- a/src/mapi/glapi/gen/EXT_transform_feedback.xml +++ b/src/mapi/glapi/gen/EXT_transform_feedback.xml @@ -102,7 +102,7 @@ - + diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c index 633b629a9d0..c7db48c593b 100644 --- a/src/mesa/main/transformfeedback.c +++ b/src/mesa/main/transformfeedback.c @@ -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) { diff --git a/src/mesa/main/transformfeedback.h b/src/mesa/main/transformfeedback.h index 148a7767be1..645b71862c2 100644 --- a/src/mesa/main/transformfeedback.h +++ b/src/mesa/main/transformfeedback.h @@ -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); -- 2.30.2