mesa: add KHR_no_error support for glDepthFunc()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 23 Jun 2017 15:21:39 +0000 (17:21 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 28 Jun 2017 08:25:12 +0000 (10:25 +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/depth.c
src/mesa/main/depth.h

index bcd1205537e006208b47c824910cf2e77aadd691..4d6a08e1247afa4f0a815ce0080bb69d9b67c26e 100644 (file)
         <glx rop="163"/>
     </function>
 
-    <function name="DepthFunc" es1="1.0" es2="2.0">
+    <function name="DepthFunc" es1="1.0" es2="2.0" no_error="true">
         <param name="func" type="GLenum"/>
         <glx rop="164"/>
     </function>
index 4bc000fd1385a54cdfda896159d0640bb298d61d..930f5e816f9b645108cb4c089dbc25a86ba2db70 100644 (file)
@@ -89,6 +89,14 @@ depth_func(struct gl_context *ctx, GLenum func, bool no_error)
 }
 
 
+void GLAPIENTRY
+_mesa_DepthFunc_no_error(GLenum func)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   depth_func(ctx, func, true);
+}
+
+
 void GLAPIENTRY
 _mesa_DepthFunc(GLenum func)
 {
index 5760951c853d4ad11e62ef0ccde1809f0962e24d..478249f157c8fe013a85e6d38557446f87689ee0 100644 (file)
@@ -43,6 +43,9 @@ _mesa_ClearDepth( GLclampd depth );
 extern void GLAPIENTRY
 _mesa_ClearDepthf( GLclampf depth );
 
+void GLAPIENTRY
+_mesa_DepthFunc_no_error(GLenum func);
+
 extern void GLAPIENTRY
 _mesa_DepthFunc(GLenum func);