Commit b019c4e6 authored by Samuel Pitoiset's avatar Samuel Pitoiset

mesa: add KHR_no_error support for glInvalidateBufferData()

Signed-off-by: Samuel Pitoiset's avatarSamuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri's avatarTimothy Arceri <tarceri@itsqueeze.com>
parent 9ab285e5
......@@ -25,7 +25,7 @@
<param name="length" type="GLsizeiptr"/>
</function>
<function name="InvalidateBufferData">
<function name="InvalidateBufferData" no_error="true">
<param name="buffer" type="GLuint"/>
</function>
......
......@@ -4308,6 +4308,15 @@ _mesa_InvalidateBufferSubData(GLuint buffer, GLintptr offset,
invalidate_buffer_subdata(ctx, bufObj, offset, length);
}
void GLAPIENTRY
_mesa_InvalidateBufferData_no_error(GLuint buffer)
{
GET_CURRENT_CONTEXT(ctx);
struct gl_buffer_object *bufObj =_mesa_lookup_bufferobj(ctx, buffer);
invalidate_buffer_subdata(ctx, bufObj, 0, bufObj->Size);
}
void GLAPIENTRY
_mesa_InvalidateBufferData(GLuint buffer)
{
......
......@@ -347,6 +347,9 @@ void GLAPIENTRY
_mesa_InvalidateBufferSubData(GLuint buffer, GLintptr offset,
GLsizeiptr length);
void GLAPIENTRY
_mesa_InvalidateBufferData_no_error(GLuint buffer);
void GLAPIENTRY
_mesa_InvalidateBufferData(GLuint buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment