mesa: add const qualifier to glMultiDrawElementsEXT() indices param
authorBrian Paul <brianp@vmware.com>
Wed, 26 Jun 2013 17:10:48 +0000 (11:10 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Jun 2013 19:12:01 +0000 (13:12 -0600)
The 20130624 version of glext.h changed this to match the
glMultiDrawElements() function which already had the extra const
qualifier.

Fixes warnings/errors that seem to vary from one compiler to the next.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/vbo/vbo_exec_array.c
src/mesa/vbo/vbo_save_api.c

index f7257978f21b2a6332f0886dfa936577eafeb870..a066fe2d1129b5570535df8e668f9377eb58f48f 100644 (file)
         <param name="mode" type="GLenum"/>
         <param name="count" type="const GLsizei *"/>
         <param name="type" type="GLenum"/>
-        <param name="indices" type="const GLvoid **"/>
+        <param name="indices" type="const GLvoid * const *"/>
         <param name="primcount" type="GLsizei"/>
         <glx handcode="true"/>
     </function>
index 9dadd0421c3679daab7f581f44952be69415e658..75831faf9f674c86ac818a9da131fe5a0ba44cb4 100644 (file)
@@ -1371,7 +1371,7 @@ vbo_validated_multidrawelements(struct gl_context *ctx, GLenum mode,
 static void GLAPIENTRY
 vbo_exec_MultiDrawElements(GLenum mode,
                           const GLsizei *count, GLenum type,
-                          const GLvoid **indices,
+                          const GLvoid * const *indices,
                           GLsizei primcount)
 {
    GET_CURRENT_CONTEXT(ctx);
index 26951bd9413d9b63232147140f96572515d162d5..2028d8b2c8d1688115d11e9d58d2ce98867c56cf 100644 (file)
@@ -1182,7 +1182,7 @@ _save_OBE_DrawRangeElements(GLenum mode, GLuint start, GLuint end,
 
 static void GLAPIENTRY
 _save_OBE_MultiDrawElements(GLenum mode, const GLsizei *count, GLenum type,
-                            const GLvoid **indices, GLsizei primcount)
+                            const GLvoid * const *indices, GLsizei primcount)
 {
    GLsizei i;