From: Samuel Pitoiset Date: Mon, 17 Jul 2017 19:54:54 +0000 (+0200) Subject: mesa: add KHR_no_error support to glDepthRangeArrayv X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4b170e4f061784380505f173eb247af3269d26c;p=mesa.git mesa: add KHR_no_error support to glDepthRangeArrayv Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/ARB_viewport_array.xml b/src/mapi/glapi/gen/ARB_viewport_array.xml index 30c4bca3105..2db829b69a6 100644 --- a/src/mapi/glapi/gen/ARB_viewport_array.xml +++ b/src/mapi/glapi/gen/ARB_viewport_array.xml @@ -61,7 +61,7 @@ - + diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index e1ab03dec39..90c92eadbf6 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -370,6 +370,16 @@ depth_range_arrayv(struct gl_context *ctx, GLuint first, GLsizei count, ctx->Driver.DepthRange(ctx); } +void GLAPIENTRY +_mesa_DepthRangeArrayv_no_error(GLuint first, GLsizei count, const GLclampd *v) +{ + GET_CURRENT_CONTEXT(ctx); + + const struct gl_depthrange_inputs *const p = + (struct gl_depthrange_inputs *)v; + depth_range_arrayv(ctx, first, count, p); +} + void GLAPIENTRY _mesa_DepthRangeArrayv(GLuint first, GLsizei count, const GLclampd *v) { diff --git a/src/mesa/main/viewport.h b/src/mesa/main/viewport.h index f974da5d6f5..5860e4f5dc7 100644 --- a/src/mesa/main/viewport.h +++ b/src/mesa/main/viewport.h @@ -67,6 +67,10 @@ _mesa_DepthRange(GLclampd nearval, GLclampd farval); extern void GLAPIENTRY _mesa_DepthRangef(GLclampf nearval, GLclampf farval); +void GLAPIENTRY +_mesa_DepthRangeArrayv_no_error(GLuint first, GLsizei count, + const GLclampd * v); + extern void GLAPIENTRY _mesa_DepthRangeArrayv(GLuint first, GLsizei count, const GLclampd * v);