From: Samuel Pitoiset Date: Thu, 22 Jun 2017 10:01:21 +0000 (+0200) Subject: mesa: add KHR_no_error support for glClipControl() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=52a448c7d0a22edc896e02d6cf13954c72676b2e;p=mesa.git mesa: add KHR_no_error support for glClipControl() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_clip_control.xml b/src/mapi/glapi/gen/ARB_clip_control.xml index ecce133bb99..051a648081f 100644 --- a/src/mapi/glapi/gen/ARB_clip_control.xml +++ b/src/mapi/glapi/gen/ARB_clip_control.xml @@ -14,7 +14,7 @@ - + diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index b424d8f6546..bb6e8bc50fc 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -454,6 +454,14 @@ clip_control(struct gl_context *ctx, GLenum origin, GLenum depth) } +void GLAPIENTRY +_mesa_ClipControl_no_error(GLenum origin, GLenum depth) +{ + GET_CURRENT_CONTEXT(ctx); + clip_control(ctx, origin, depth); +} + + void GLAPIENTRY _mesa_ClipControl(GLenum origin, GLenum depth) { diff --git a/src/mesa/main/viewport.h b/src/mesa/main/viewport.h index 395131982cf..88757f0291e 100644 --- a/src/mesa/main/viewport.h +++ b/src/mesa/main/viewport.h @@ -74,6 +74,9 @@ extern void _mesa_init_viewport(struct gl_context *ctx); +void GLAPIENTRY +_mesa_ClipControl_no_error(GLenum origin, GLenum depth); + extern void GLAPIENTRY _mesa_ClipControl(GLenum origin, GLenum depth);