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 | |
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')
-rw-r--r-- | src/mapi/glapi/gen/gl_API.xml | 2 | ||||
-rw-r--r-- | src/mesa/main/stencil.c | 9 | ||||
-rw-r--r-- | src/mesa/main/stencil.h | 3 |
3 files changed, 13 insertions, 1 deletions
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 @@ <glx ignore="true"/> </function> - <function name="StencilOpSeparate" es2="2.0"> + <function name="StencilOpSeparate" es2="2.0" no_error="true"> <param name="face" type="GLenum"/> <param name="sfail" type="GLenum"/> <param name="zfail" type="GLenum"/> 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); |