diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-20 18:35:02 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-21 08:47:22 +0200 |
commit | e6659c560a73316ea6b0273cfa0870b5242baab0 (patch) | |
tree | f1f9caf7e901fa56e435ed3738eb37656b55a346 /src/mesa/main | |
parent | db967dcb05cbae2d153122609df78b737852fc5c (diff) |
mesa: add KHR_no_error support for glStencilFunc()
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 | 8 | ||||
-rw-r--r-- | src/mesa/main/stencil.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index 4c35b2d20d7..82dd7870675 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -230,6 +230,14 @@ stencil_func(struct gl_context *ctx, GLenum func, GLint ref, GLuint mask) void GLAPIENTRY +_mesa_StencilFunc_no_error(GLenum func, GLint ref, GLuint mask) +{ + GET_CURRENT_CONTEXT(ctx); + stencil_func(ctx, func, ref, mask); +} + + +void GLAPIENTRY _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h index a7a2210ac9b..71844712a28 100644 --- a/src/mesa/main/stencil.h +++ b/src/mesa/main/stencil.h @@ -41,6 +41,9 @@ extern void GLAPIENTRY _mesa_ClearStencil( GLint s ); +void GLAPIENTRY +_mesa_StencilFunc_no_error(GLenum func, GLint ref, GLuint mask); + extern void GLAPIENTRY _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask); |