mesa: add KHR_no_error support for glDepthRangeIndexed()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 23 Jun 2017 16:09:12 +0000 (18:09 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 28 Jun 2017 08:25:12 +0000 (10:25 +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 da5aed6c177e0836ce6d9d68e1989df873810215..30c4bca3105b5e7108ba481f38390f103561ab4a 100644 (file)
@@ -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"/>
index 8055ba55e5c8c02e578328232b3e80bfba94471f..0a5caf04c6047d19b35863522c694006da4a6903 100644 (file)
@@ -403,6 +403,15 @@ _mesa_DepthRangeArrayfvOES(GLuint first, GLsizei count, const GLfloat *v)
  * \param farval   specifies the Z buffer value which should correspond to
  *                 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)
 {
index b07410bf58a4979e2a4d08cf84892543a2a8e7cb..f974da5d6f576d4b50653b839c47441da8527689 100644 (file)
@@ -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);