From: Samuel Pitoiset Date: Tue, 20 Jun 2017 16:41:19 +0000 (+0200) Subject: mesa: add KHR_no_error support for glStencilOp() X-Git-Tag: upstream/18.1.0~8582 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26fbdb12f4eadcf7b736bef6e546e489baa7e4af;p=platform%2Fupstream%2Fmesa.git mesa: add KHR_no_error support for glStencilOp() 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 dd64fe2..8784f05 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -2563,7 +2563,7 @@ - + diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index 7913bb1..4bd7b88 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -367,6 +367,14 @@ stencil_op(struct gl_context *ctx, GLenum fail, GLenum zfail, GLenum zpass) void GLAPIENTRY +_mesa_StencilOp_no_error(GLenum fail, GLenum zfail, GLenum zpass) +{ + GET_CURRENT_CONTEXT(ctx); + stencil_op(ctx, fail, zfail, zpass); +} + + +void GLAPIENTRY _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h index 5425065..ccb8646 100644 --- a/src/mesa/main/stencil.h +++ b/src/mesa/main/stencil.h @@ -51,6 +51,8 @@ _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask); extern void GLAPIENTRY _mesa_StencilMask( GLuint mask ); +void GLAPIENTRY +_mesa_StencilOp_no_error(GLenum fail, GLenum zfail, GLenum zpass); extern void GLAPIENTRY _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass);