mesa: add KHR_no_error support for glStencilOp()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 20 Jun 2017 16:41:19 +0000 (18:41 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 21 Jun 2017 06:47:26 +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 dd64fe27b6a2427cfc83e0f9c8dd7332c1652b82..8784f0537f52e53b5533e0d3dd71a164ed36e47d 100644 (file)
         <glx rop="162"/>
     </function>
 
-    <function name="StencilOp" es1="1.0" es2="2.0">
+    <function name="StencilOp" es1="1.0" es2="2.0" no_error="true">
         <param name="fail" type="GLenum"/>
         <param name="zfail" type="GLenum"/>
         <param name="zpass" type="GLenum"/>
index 7913bb176e7e2e96f66b016af8bb8de8e5437c0d..4bd7b8803efa2c8759b0a23448915eb948bde939 100644 (file)
@@ -366,6 +366,14 @@ stencil_op(struct gl_context *ctx, GLenum fail, GLenum zfail, GLenum zpass)
 }
 
 
+void GLAPIENTRY
+_mesa_StencilOp_no_error(GLenum fail, GLenum zfail, GLenum zpass)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   stencil_op(ctx, fail, zfail, zpass);
+}
+
+
 void GLAPIENTRY
 _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
 {
index 5425065a7ca49a02b4706b77441c3735d3e8ae19..ccb864691893b477006c41e36f70b54c4971d780 100644 (file)
@@ -51,6 +51,8 @@ _mesa_StencilFunc(GLenum func, GLint ref, GLuint mask);
 extern void GLAPIENTRY
 _mesa_StencilMask( GLuint mask );
 
+void GLAPIENTRY
+_mesa_StencilOp_no_error(GLenum fail, GLenum zfail, GLenum zpass);
 
 extern void GLAPIENTRY
 _mesa_StencilOp(GLenum fail, GLenum zfail, GLenum zpass);