glapi: add const qualifier to glShaderSourceARB() parameter
authorBrian Paul <brianp@vmware.com>
Wed, 27 Jun 2012 16:23:54 +0000 (10:23 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 27 Jun 2012 21:37:10 +0000 (15:37 -0600)
Fixes the es2 build with gcc.

Note: in glext.h the prototypes for glShaderSource() and glShaderSourceARB()
disagree:  only the former has the extra const qualifier.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/APIspec.xml

index af051355642847bceb3caffba0cf62bf2944690d..2140a40833c889c708d670157bb0565f60d8d445 100644 (file)
     <function name="ShaderSource" alias="ShaderSourceARB">
         <param name="shader" type="GLuint"/>
         <param name="count" type="GLsizei"/>
-        <param name="string" type="const GLchar **"/>
+        <param name="string" type="const GLchar * const *"/>
         <param name="length" type="const GLint *"/>
         <glx ignore="true"/>
     </function>
index 64e666effd603b483466520432a0ff109c6fecc0..f870cf7db6449edf1a509190cd11238ee0a56486 100644 (file)
                <return type="void"/>
                <param name="shader" type="GLuint"/>
                <param name="count" type="GLsizei"/>
-               <param name="string" type="const GLchar **"/>
+               <param name="string" type="const GLchar * const *"/>
                <param name="length" type="const int *"/>
        </proto>
 </template>