mesa: add KHR_no_error support to glBindBufferOffsetEXT()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Samuel Pitoiset 2017-08-24 11:36:45 +02:00
parent dc058f850c
commit fff1327547
3 changed files with 15 additions and 1 deletions

View File

@ -32,7 +32,7 @@
<param name="size" type="GLsizeiptr"/>
</function>
<function name="BindBufferOffsetEXT">
<function name="BindBufferOffsetEXT" no_error="true">
<param name="target" type="GLenum"/>
<param name="index" type="GLuint"/>
<param name="buffer" type="GLuint"/>

View File

@ -801,6 +801,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)

View File

@ -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);