diff options
author | Samuel Pitoiset <[email protected]> | 2017-07-21 14:21:10 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-08-02 12:54:32 +0200 |
commit | 73c5e750d799a8b35f282767fe6fa57f32190089 (patch) | |
tree | 585db8fc74aef73a8a1ffcac9e5c93578f60f491 /src/mesa/main | |
parent | 1ed61e0239feb5f08236df9a8e74cd8fb78c13e8 (diff) |
mesa: add KHR_no_error support to glClearBufferfi()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/clear.c | 9 | ||||
-rw-r--r-- | src/mesa/main/clear.h | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c index 4c3400412cd..62a00c04018 100644 --- a/src/mesa/main/clear.c +++ b/src/mesa/main/clear.c @@ -684,6 +684,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) { diff --git a/src/mesa/main/clear.h b/src/mesa/main/clear.h index 780e9ca05cf..acc0e68ed7f 100644 --- a/src/mesa/main/clear.h +++ b/src/mesa/main/clear.h @@ -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); |