mesa: add KHR_no_error support to glPrimitiveRestartIndex()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Jul 2017 07:40:49 +0000 (09:40 +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/GL3x.xml
src/mesa/main/varray.c
src/mesa/main/varray.h

index 7c86e8fc51aed5f90a60a231cd024fa55588d41c..e55b5bbe65e1fa2413756995176421f1b14eb221 100644 (file)
     <param name="buffer" type="GLuint"/>
   </function>
 
-  <function name="PrimitiveRestartIndex">
+  <function name="PrimitiveRestartIndex" no_error="true">
     <param name="index" type="GLuint"/>
   </function>
 
index 6aa4c72bdd1e38753633d370fa78b76019ead196..993472448918da6d19fcda98eaea65bef067eec7 100644 (file)
@@ -1936,6 +1936,14 @@ primitive_restart_index(struct gl_context *ctx, GLuint index)
 /**
  * GL_NV_primitive_restart and GL 3.1
  */
+void GLAPIENTRY
+_mesa_PrimitiveRestartIndex_no_error(GLuint index)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   primitive_restart_index(ctx, index);
+}
+
+
 void GLAPIENTRY
 _mesa_PrimitiveRestartIndex(GLuint index)
 {
index 182fb544f6900fba9d113f8d3d3f2117af4a70e6..730f7cf3588ce6e148abb1083bc099ef17cade7c 100644 (file)
@@ -351,6 +351,9 @@ _mesa_DrawRangeElementsBaseVertex(GLenum mode, GLuint start, GLuint end,
 extern void GLAPIENTRY
 _mesa_DrawTransformFeedback(GLenum mode, GLuint name);
 
+void GLAPIENTRY
+_mesa_PrimitiveRestartIndex_no_error(GLuint index);
+
 extern void GLAPIENTRY
 _mesa_PrimitiveRestartIndex(GLuint index);