summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-08-24 11:57:55 +0200
committerSamuel Pitoiset <[email protected]>2017-08-25 11:35:29 +0200
commit3906e8ab6477af71e5c84cae17ee1efa1b9e541d (patch)
treef913854bd209f0366a336e583cfe7b7f493fc06f /src
parent088d5cb44f9003db97c18d571e2d9d2bad0b60de (diff)
mesa: add KHR_no_error support to glBeginTransformFeedback()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mapi/glapi/gen/GL3x.xml2
-rw-r--r--src/mesa/main/transformfeedback.c8
-rw-r--r--src/mesa/main/transformfeedback.h3
3 files changed, 12 insertions, 1 deletions
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 @@
<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 f59f5a3f76c..525c5b7a5b8 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -480,6 +480,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)
{
GET_CURRENT_CONTEXT(ctx);
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);