mesa: add KHR_no_error support to glClearBufferfi()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Samuel Pitoiset 2017-07-21 14:21:10 +02:00
parent 1ed61e0239
commit 73c5e750d7
3 changed files with 14 additions and 1 deletions

View File

@ -135,7 +135,7 @@
<param name="value" type="const GLfloat *"/>
</function>
<function name="ClearBufferfi" es2="3.0" marshal="custom">
<function name="ClearBufferfi" es2="3.0" marshal="custom" no_error="true">
<param name="buffer" type="GLenum"/>
<param name="drawbuffer" type="GLint"/>
<param name="depth" type="GLfloat"/>

View File

@ -683,6 +683,15 @@ clear_bufferfi(struct gl_context *ctx, GLenum buffer, GLint drawbuffer,
}
void GLAPIENTRY
_mesa_ClearBufferfi_no_error(GLenum buffer, GLint drawbuffer,
GLfloat depth, GLint stencil)
{
GET_CURRENT_CONTEXT(ctx);
clear_bufferfi(ctx, buffer, drawbuffer, depth, stencil, true);
}
void GLAPIENTRY
_mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer,
GLfloat depth, GLint stencil)

View File

@ -75,6 +75,10 @@ extern void GLAPIENTRY
_mesa_ClearNamedFramebufferfv(GLuint framebuffer, GLenum buffer,
GLint drawbuffer, const GLfloat *value);
void GLAPIENTRY
_mesa_ClearBufferfi_no_error(GLenum buffer, GLint drawbuffer,
GLfloat depth, GLint stencil);
extern void GLAPIENTRY
_mesa_ClearBufferfi(GLenum buffer, GLint drawbuffer,
GLfloat depth, GLint stencil);