mesa: add KHR_no_error support to glDepthRangeArrayv
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 17 Jul 2017 19:54:54 +0000 (21:54 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:39 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_viewport_array.xml
src/mesa/main/viewport.c
src/mesa/main/viewport.h

index 30c4bca..2db829b 100644 (file)
@@ -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"/>
index e1ab03d..90c92ea 100644 (file)
@@ -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 =
index f974da5..5860e4f 100644 (file)
@@ -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);