summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-20 18:17:29 +0200
committerSamuel Pitoiset <[email protected]>2017-06-21 08:47:12 +0200
commitd222e14ffa6b72727238f45bacb0a39bf37f2ff7 (patch)
treef9b927079864d5925859bec14421e4a3a863fed1 /src/mesa
parent8ab0aaa3507247c8cddace7e2eee02382beebf34 (diff)
mesa: add KHR_no_error support for glStencilMaskSeparate()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/stencil.c8
-rw-r--r--src/mesa/main/stencil.h3
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c
index 497fffafbe3..746775d2db6 100644
--- a/src/mesa/main/stencil.c
+++ b/src/mesa/main/stencil.c
@@ -527,6 +527,14 @@ stencil_mask_separate(struct gl_context *ctx, GLenum face, GLuint mask)
/* OpenGL 2.0 */
void GLAPIENTRY
+_mesa_StencilMaskSeparate_no_error(GLenum face, GLuint mask)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ stencil_mask_separate(ctx, face, mask);
+}
+
+
+void GLAPIENTRY
_mesa_StencilMaskSeparate(GLenum face, GLuint mask)
{
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/stencil.h b/src/mesa/main/stencil.h
index 21b4adf6466..af7067381c7 100644
--- a/src/mesa/main/stencil.h
+++ b/src/mesa/main/stencil.h
@@ -72,6 +72,9 @@ _mesa_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);
extern void GLAPIENTRY
_mesa_StencilFuncSeparateATI(GLenum frontfunc, GLenum backfunc, GLint ref, GLuint mask);
+void GLAPIENTRY
+_mesa_StencilMaskSeparate_no_error(GLenum face, GLuint mask);
+
extern void GLAPIENTRY
_mesa_StencilMaskSeparate(GLenum face, GLuint mask);