From: Samuel Pitoiset Date: Tue, 20 Jun 2017 16:35:02 +0000 (+0200) Subject: mesa: add KHR_no_error support for glStencilFunc() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e6659c560a73316ea6b0273cfa0870b5242baab0;p=mesa.git mesa: add KHR_no_error support for glStencilFunc() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 513b57aab3d..dd64fe27b6a 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -2556,7 +2556,7 @@ - + diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index 4c35b2d20d7..82dd7870675 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -229,6 +229,14 @@ stencil_func(struct gl_context *ctx, GLenum func, GLint ref, GLuint mask) } +void GLAPIENTRY +_mesa_StencilFunc_no_error(GLenum func, GLint ref, GLuint mask) +{ + GET_CURRENT_CONTEXT(ctx); + stencil_func(ctx, func, ref, mask); +} + + void GLAPIENTRY _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask) { diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h index a7a2210ac9b..71844712a28 100644 --- a/src/mesa/main/stencil.h +++ b/src/mesa/main/stencil.h @@ -41,6 +41,9 @@ extern void GLAPIENTRY _mesa_ClearStencil( GLint s ); +void GLAPIENTRY +_mesa_StencilFunc_no_error(GLenum func, GLint ref, GLuint mask); + extern void GLAPIENTRY _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask);