summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-08-24 11:36:45 +0200
committerSamuel Pitoiset <[email protected]>2017-08-25 11:35:30 +0200
commitfff132754770d54da0c285e266737d9fcd73ca94 (patch)
tree242be280bec1f407d857fb9ef6859a9a00e96ac6 /src/mesa
parentdc058f850c0720880b2738cccde1c7f6e06f2e25 (diff)
mesa: add KHR_no_error support to glBindBufferOffsetEXT()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/transformfeedback.c10
-rw-r--r--src/mesa/main/transformfeedback.h4
2 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index 44a6e149dba..befc74444c5 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -802,6 +802,16 @@ bind_buffer_offset(struct gl_context *ctx,
void GLAPIENTRY
+_mesa_BindBufferOffsetEXT_no_error(GLenum target, GLuint index, GLuint buffer,
+ GLintptr offset)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ bind_buffer_offset(ctx, ctx->TransformFeedback.CurrentObject, index, buffer,
+ offset, true);
+}
+
+
+void GLAPIENTRY
_mesa_BindBufferOffsetEXT(GLenum target, GLuint index, GLuint buffer,
GLintptr offset)
{
diff --git a/src/mesa/main/transformfeedback.h b/src/mesa/main/transformfeedback.h
index cc798878b53..78a6c3377dd 100644
--- a/src/mesa/main/transformfeedback.h
+++ b/src/mesa/main/transformfeedback.h
@@ -78,6 +78,10 @@ _mesa_bind_buffer_base_transform_feedback(struct gl_context *ctx,
struct gl_buffer_object *bufObj,
bool dsa);
+void GLAPIENTRY
+_mesa_BindBufferOffsetEXT_no_error(GLenum target, GLuint index, GLuint buffer,
+ GLintptr offset);
+
extern void GLAPIENTRY
_mesa_BindBufferOffsetEXT(GLenum target, GLuint index, GLuint buffer,
GLintptr offset);