summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-17 21:54:54 +0200
committerSamuel Pitoiset <[email protected]>2017-07-31 13:53:39 +0200
commite4b170e4f061784380505f173eb247af3269d26c (patch)
treee95f068b0a9c5ebe4d6af15ebb18411272f4a8c3 /src
parent999f2de9a860ff932899cf9982715d3bdd3d0ecf (diff)
mesa: add KHR_no_error support to glDepthRangeArrayv
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.xml2
-rw-r--r--src/mesa/main/viewport.c10
-rw-r--r--src/mesa/main/viewport.h4
3 files changed, 15 insertions, 1 deletions
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 @@
<param name="index" type="GLuint"/>
<param name="v" type="const GLint *" count="4"/>
</function>
- <function name="DepthRangeArrayv">
+ <function name="DepthRangeArrayv" no_error="true">
<param name="first" type="GLuint"/>
<param name="count" type="GLsizei"/>
<param name="v" type="const GLclampd *" count="count" count_scale="2"/>
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);