summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-20 18:35:02 +0200
committerSamuel Pitoiset <[email protected]>2017-06-21 08:47:22 +0200
commite6659c560a73316ea6b0273cfa0870b5242baab0 (patch)
treef1f9caf7e901fa56e435ed3738eb37656b55a346 /src
parentdb967dcb05cbae2d153122609df78b737852fc5c (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')
-rw-r--r--src/mapi/glapi/gen/gl_API.xml2
-rw-r--r--src/mesa/main/stencil.c8
-rw-r--r--src/mesa/main/stencil.h3
3 files changed, 12 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 513b57aab3d..dd64fe27b6a 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -2556,7 +2556,7 @@
<glx rop="161"/>
</function>
- <function name="StencilFunc" es1="1.0" es2="2.0">
+ <function name="StencilFunc" es1="1.0" es2="2.0" no_error="true">
<param name="func" type="GLenum"/>
<param name="ref" type="GLint"/>
<param name="mask" type="GLuint"/>
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);