From 73c5e750d799a8b35f282767fe6fa57f32190089 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 21 Jul 2017 14:21:10 +0200 Subject: mesa: add KHR_no_error support to glClearBufferfi() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/GL3x.xml | 2 +- src/mesa/main/clear.c | 9 +++++++++ src/mesa/main/clear.h | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml index 5b3fa26436a..6df40db3800 100644 --- a/src/mapi/glapi/gen/GL3x.xml +++ b/src/mapi/glapi/gen/GL3x.xml @@ -135,7 +135,7 @@ - + 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 @@ -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) 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); -- cgit v1.2.3