From e4b170e4f061784380505f173eb247af3269d26c Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 17 Jul 2017 21:54:54 +0200 Subject: [PATCH] mesa: add KHR_no_error support to glDepthRangeArrayv Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/ARB_viewport_array.xml | 2 +- src/mesa/main/viewport.c | 10 ++++++++++ src/mesa/main/viewport.h | 4 ++++ 3 files changed, 15 insertions(+), 1 deletion(-) 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 @@ -371,6 +371,16 @@ depth_range_arrayv(struct gl_context *ctx, GLuint first, GLsizei count, } 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) { const struct gl_depthrange_inputs *const p = 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); -- 2.11.0