From 3561d93668234225699734f3cc010defa0fda360 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 23 Jun 2017 18:09:12 +0200 Subject: [PATCH] mesa: add KHR_no_error support for glDepthRangeIndexed() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mapi/glapi/gen/ARB_viewport_array.xml | 2 +- src/mesa/main/viewport.c | 9 +++++++++ src/mesa/main/viewport.h | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/ARB_viewport_array.xml b/src/mapi/glapi/gen/ARB_viewport_array.xml index da5aed6..30c4bca 100644 --- a/src/mapi/glapi/gen/ARB_viewport_array.xml +++ b/src/mapi/glapi/gen/ARB_viewport_array.xml @@ -66,7 +66,7 @@ - + diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index 8055ba5..0a5caf0 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -404,6 +404,15 @@ _mesa_DepthRangeArrayfvOES(GLuint first, GLsizei count, const GLfloat *v) * the far clip plane */ void GLAPIENTRY +_mesa_DepthRangeIndexed_no_error(GLuint index, GLclampd nearval, + GLclampd farval) +{ + GET_CURRENT_CONTEXT(ctx); + _mesa_set_depth_range(ctx, index, nearval, farval); +} + + +void GLAPIENTRY _mesa_DepthRangeIndexed(GLuint index, GLclampd nearval, GLclampd farval) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/viewport.h b/src/mesa/main/viewport.h index b07410b..f974da5 100644 --- a/src/mesa/main/viewport.h +++ b/src/mesa/main/viewport.h @@ -73,6 +73,9 @@ _mesa_DepthRangeArrayv(GLuint first, GLsizei count, const GLclampd * v); extern void GLAPIENTRY _mesa_DepthRangeArrayfvOES(GLuint first, GLsizei count, const GLfloat * v); +void GLAPIENTRY +_mesa_DepthRangeIndexed_no_error(GLuint index, GLclampd n, GLclampd f); + extern void GLAPIENTRY _mesa_DepthRangeIndexed(GLuint index, GLclampd n, GLclampd f); -- 2.7.4