mesa: add KHR_no_error support to gl{Create,Gen}VertexArrays()
[mesa.git] / src / mesa / main / arrayobj.c
index 5b73652bd95d5a49439b7a81fc51db5a4f6e9f97..af6a17daeca1fee292ce9d828ed6834826b13478 100644 (file)
@@ -550,6 +550,14 @@ gen_vertex_arrays_err(struct gl_context *ctx, GLsizei n, GLuint *arrays,
  * ARB version of glGenVertexArrays()
  * All arrays will be required to live in VBOs.
  */
+void GLAPIENTRY
+_mesa_GenVertexArrays_no_error(GLsizei n, GLuint *arrays)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   gen_vertex_arrays(ctx, n, arrays, false, "glGenVertexArrays");
+}
+
+
 void GLAPIENTRY
 _mesa_GenVertexArrays(GLsizei n, GLuint *arrays)
 {
@@ -562,6 +570,14 @@ _mesa_GenVertexArrays(GLsizei n, GLuint *arrays)
  * ARB_direct_state_access
  * Generates ID's and creates the array objects.
  */
+void GLAPIENTRY
+_mesa_CreateVertexArrays_no_error(GLsizei n, GLuint *arrays)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   gen_vertex_arrays(ctx, n, arrays, true, "glCreateVertexArrays");
+}
+
+
 void GLAPIENTRY
 _mesa_CreateVertexArrays(GLsizei n, GLuint *arrays)
 {