mesa: add KHR_no_error support for glInvalidateBufferData()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Samuel Pitoiset 2017-05-31 14:18:00 +02:00
parent 9ab285e588
commit b019c4e6e8
3 changed files with 13 additions and 1 deletions

View file

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

View file

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

View file

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