diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-23 17:21:39 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-28 10:25:12 +0200 |
commit | 9628282f1e8fd7f870c2dba07d0868c8a79743d5 (patch) | |
tree | 5f206b8337d98aebefbf294f3c0bedf220130a6e /src/mesa | |
parent | bbc03839d1e61f0c0250f2af51c3194637ee2745 (diff) |
mesa: add KHR_no_error support for glDepthFunc()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/depth.c | 8 | ||||
-rw-r--r-- | src/mesa/main/depth.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/main/depth.c b/src/mesa/main/depth.c index 4bc000fd138..930f5e816f9 100644 --- a/src/mesa/main/depth.c +++ b/src/mesa/main/depth.c @@ -90,6 +90,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) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/depth.h b/src/mesa/main/depth.h index 5760951c853..478249f157c 100644 --- a/src/mesa/main/depth.h +++ b/src/mesa/main/depth.h @@ -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); |