diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-20 18:24:47 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-21 08:47:16 +0200 |
commit | b9e2d5c18d3edc7cdd2e8df3d6d0aae7daeff57e (patch) | |
tree | dd57f1ebeae285eabe32c792065e55192b3126c0 /src/mesa/main | |
parent | 0614b7a6f75d7ab0c7c524ca71199d242f2bd052 (diff) |
mesa: add KHR_no_error support for glStencilOpSeparate()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/stencil.c | 9 | ||||
-rw-r--r-- | src/mesa/main/stencil.h | 3 |
2 files changed, 12 insertions, 0 deletions
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 @@ -430,6 +430,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) { GET_CURRENT_CONTEXT(ctx); 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); |