mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
9ab285e588
commit
b019c4e6e8
3 changed files with 13 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue