From b9e2d5c18d3edc7cdd2e8df3d6d0aae7daeff57e Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 20 Jun 2017 18:24:47 +0200 Subject: mesa: add KHR_no_error support for glStencilOpSeparate() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/gl_API.xml | 2 +- src/mesa/main/stencil.c | 9 +++++++++ src/mesa/main/stencil.h | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index a0b93cb1490..513b57aab3d 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -5279,7 +5279,7 @@ - + diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index fa68fa1bd0d..d7e94194012 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -429,6 +429,15 @@ stencil_op_separate(struct gl_context *ctx, GLenum face, GLenum sfail, } +void GLAPIENTRY +_mesa_StencilOpSeparate_no_error(GLenum face, GLenum sfail, GLenum zfail, + GLenum zpass) +{ + GET_CURRENT_CONTEXT(ctx); + stencil_op_separate(ctx, face, sfail, zfail, zpass); +} + + void GLAPIENTRY _mesa_StencilOpSeparate(GLenum face, GLenum sfail, GLenum zfail, GLenum zpass) { diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h index af7067381c7..87708e009c9 100644 --- a/src/mesa/main/stencil.h +++ b/src/mesa/main/stencil.h @@ -56,6 +56,9 @@ _mesa_StencilOp( GLenum fail, GLenum zfail, GLenum zpass ); extern void GLAPIENTRY _mesa_ActiveStencilFaceEXT(GLenum face); +void GLAPIENTRY +_mesa_StencilOpSeparate_no_error(GLenum face, GLenum fail, GLenum zfail, + GLenum zpass); extern void GLAPIENTRY _mesa_StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass); -- cgit v1.2.3