mesa: add KHR_no_error support for glStencilFunc()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 20 Jun 2017 16:35:02 +0000 (18:35 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 21 Jun 2017 06:47:22 +0000 (08:47 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/stencil.c
src/mesa/main/stencil.h

index 513b57aab3d777e9ccd4f0ffc6d7c7708abd4f2b..dd64fe27b6a2427cfc83e0f9c8dd7332c1652b82 100644 (file)
         <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"/>
index 4c35b2d20d79c3010f9adc39710ee81fdeba92e6..82dd78706759602ba6bd1ae41df9c69a5015a456 100644 (file)
@@ -229,6 +229,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)
 {
index a7a2210ac9b30ff80abfbc21a79f1a528d6c10b2..71844712a282adcbeb82735a0392da2451c10a1a 100644 (file)
@@ -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);