[Mesa-dev] [PATCH] glapi: add const qualifier to glShaderSourceARB() parameter

Brian Paul brianp at vmware.com
Wed Jun 27 09:36:32 PDT 2012


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.
---
 src/mapi/glapi/gen/gl_API.xml |    2 +-
 src/mesa/main/APIspec.xml     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index af05135..2140a40 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -5363,7 +5363,7 @@
     <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>
diff --git a/src/mesa/main/APIspec.xml b/src/mesa/main/APIspec.xml
index 64e666e..f870cf7 100644
--- a/src/mesa/main/APIspec.xml
+++ b/src/mesa/main/APIspec.xml
@@ -2946,7 +2946,7 @@
 		<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>
-- 
1.7.3.4



More information about the mesa-dev mailing list