[Mesa-dev] [PATCH 04/14] mesa: add KHR_no_error support to glBeginTransformFeedback()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Thu Aug 24 13:21:12 UTC 2017
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
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 8d10f78e82..54e99e7db9 100644
--- a/src/mapi/glapi/gen/GL3x.xml
+++ b/src/mapi/glapi/gen/GL3x.xml
@@ -206,7 +206,7 @@
<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>
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index b217d0d84a..47c72ca1b1 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -475,6 +475,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 47639bb56f..6f28d817ab 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.14.1
More information about the mesa-dev
mailing list