mesa: add KHR_no_error support for glDepthFunc()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -2570,7 +2570,7 @@
|
||||
<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>
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user