From: Samuel Pitoiset Date: Tue, 20 Jun 2017 16:17:29 +0000 (+0200) Subject: mesa: add KHR_no_error support for glStencilMaskSeparate() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d222e14ffa6b72727238f45bacb0a39bf37f2ff7;p=mesa.git mesa: add KHR_no_error support for glStencilMaskSeparate() 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 81e70546b60..a0b93cb1490 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -5287,7 +5287,7 @@ - + diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index 497fffafbe3..746775d2db6 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -526,6 +526,14 @@ stencil_mask_separate(struct gl_context *ctx, GLenum face, GLuint mask) /* OpenGL 2.0 */ +void GLAPIENTRY +_mesa_StencilMaskSeparate_no_error(GLenum face, GLuint mask) +{ + GET_CURRENT_CONTEXT(ctx); + stencil_mask_separate(ctx, face, mask); +} + + void GLAPIENTRY _mesa_StencilMaskSeparate(GLenum face, GLuint mask) { diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h index 21b4adf6466..af7067381c7 100644 --- a/src/mesa/main/stencil.h +++ b/src/mesa/main/stencil.h @@ -72,6 +72,9 @@ _mesa_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); extern void GLAPIENTRY _mesa_StencilFuncSeparateATI(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask); +void GLAPIENTRY +_mesa_StencilMaskSeparate_no_error(GLenum face, GLuint mask); + extern void GLAPIENTRY _mesa_StencilMaskSeparate(GLenum face, GLuint mask);