diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-23 18:09:12 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-28 10:25:12 +0200 |
commit | 3561d93668234225699734f3cc010defa0fda360 (patch) | |
tree | 7062b9e03581ab51286bde1a8b7a04937375f525 /src | |
parent | 9628282f1e8fd7f870c2dba07d0868c8a79743d5 (diff) |
mesa: add KHR_no_error support for glDepthRangeIndexed()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mapi/glapi/gen/ARB_viewport_array.xml | 2 | ||||
-rw-r--r-- | src/mesa/main/viewport.c | 9 | ||||
-rw-r--r-- | src/mesa/main/viewport.h | 3 |
3 files changed, 13 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/ARB_viewport_array.xml b/src/mapi/glapi/gen/ARB_viewport_array.xml index da5aed6c177..30c4bca3105 100644 --- a/src/mapi/glapi/gen/ARB_viewport_array.xml +++ b/src/mapi/glapi/gen/ARB_viewport_array.xml @@ -66,7 +66,7 @@ <param name="count" type="GLsizei"/> <param name="v" type="const GLclampd *" count="count" count_scale="2"/> </function> - <function name="DepthRangeIndexed"> + <function name="DepthRangeIndexed" no_error="true"> <param name="index" type="GLuint"/> <param name="n" type="GLclampd"/> <param name="f" type="GLclampd"/> diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index 8055ba55e5c..0a5caf04c60 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 b07410bf58a..f974da5d6f5 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); |