Module: Mesa Branch: master Commit: d222e14ffa6b72727238f45bacb0a39bf37f2ff7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d222e14ffa6b72727238f45bacb0a39bf37f2ff7
Author: Samuel Pitoiset <samuel.pitoi...@gmail.com> Date: Tue Jun 20 18:17:29 2017 +0200 mesa: add KHR_no_error support for glStencilMaskSeparate() Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Reviewed-by: Timothy Arceri <tarc...@itsqueeze.com> --- src/mapi/glapi/gen/gl_API.xml | 2 +- src/mesa/main/stencil.c | 8 ++++++++ src/mesa/main/stencil.h | 3 +++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 81e70546b6..a0b93cb149 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -5287,7 +5287,7 @@ <glx ignore="true"/> </function> - <function name="StencilMaskSeparate" es2="2.0"> + <function name="StencilMaskSeparate" es2="2.0" no_error="true"> <param name="face" type="GLenum"/> <param name="mask" type="GLuint"/> <glx ignore="true"/> diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index 497fffafbe..746775d2db 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -527,6 +527,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) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h index 21b4adf646..af7067381c 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); _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit