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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user