aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2017-06-20 18:13:36 +0200
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2017-06-21 08:47:09 +0200
commit9c49c9d8ddac5be2cc399a62e48257b21d7922e9 (patch)
tree49542911b286ebf4099bf31ef174081b0ccbaf0d /src
parent6f10d93ea4d4cf13321bd7b75adc94d161027a94 (diff)
mesa: add KHR_no_error support for glStencilFuncSeparate()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Diffstat (limited to 'src')
-rw-r--r--src/mapi/glapi/gen/gl_API.xml2
-rw-r--r--src/mesa/main/stencil.c9
-rw-r--r--src/mesa/main/stencil.h4
3 files changed, 14 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index b7134e21878..81e70546b60 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -5271,7 +5271,7 @@
<glx rop="233" large="true"/>
</function>
- <function name="StencilFuncSeparate" es2="2.0">
+ <function name="StencilFuncSeparate" es2="2.0" no_error="true">
<param name="face" type="GLenum"/>
<param name="func" type="GLenum"/>
<param name="ref" type="GLint"/>
diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c
index 78a09072b29..0b7e151ad13 100644
--- a/src/mesa/main/stencil.c
+++ b/src/mesa/main/stencil.c
@@ -476,6 +476,15 @@ stencil_func_separate(struct gl_context *ctx, GLenum face, GLenum func,
/* OpenGL 2.0 */
void GLAPIENTRY
+_mesa_StencilFuncSeparate_no_error(GLenum face, GLenum func, GLint ref,
+ GLuint mask)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ stencil_func_separate(ctx, face, func, ref, mask);
+}
+
+
+void GLAPIENTRY
_mesa_StencilFuncSeparate(GLenum face, 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 3302cb94703..21b4adf6466 100644
--- a/src/mesa/main/stencil.h
+++ b/src/mesa/main/stencil.h
@@ -61,6 +61,10 @@ extern void GLAPIENTRY
_mesa_StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
+void GLAPIENTRY
+_mesa_StencilFuncSeparate_no_error(GLenum face, GLenum func, GLint ref,
+ GLuint mask);
+
extern void GLAPIENTRY
_mesa_StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask);