summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/transformfeedback.h
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2012-11-06 07:26:56 -0800
committerPaul Berry <stereotype441@gmail.com>2012-11-12 10:53:57 -0800
commitbb3db388d8d4c7c2276a1db27fadaa1c57f1b39c (patch)
tree1968d9110ee59da14f0fabbb8c189b8a7ecd255a /src/mesa/main/transformfeedback.h
parent1a1db1746db82efc7f0643508886dfc78a15eb71 (diff)
downloadexternal_mesa3d-bb3db388d8d4c7c2276a1db27fadaa1c57f1b39c.zip
external_mesa3d-bb3db388d8d4c7c2276a1db27fadaa1c57f1b39c.tar.gz
external_mesa3d-bb3db388d8d4c7c2276a1db27fadaa1c57f1b39c.tar.bz2
mesa: Fix const correctness of API implementation functions.
This patch changes the use of const in the type signatures of _mesa_ShaderSource() and _mesa_TransformFeedbackVaryings(), to match the type signatures in the GL spec. This avoids warnings when building the code-generated api_exec.c file. Note: previously we avoided the build warnings because these functions were being type-checked against ShaderSourceARB and TransformFeedbackVaryingsEXT; those functions are semantically equivalent, but have fewer const qualifiers in their type signatures. Acked-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/main/transformfeedback.h')
-rw-r--r--src/mesa/main/transformfeedback.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/transformfeedback.h b/src/mesa/main/transformfeedback.h
index dec11ff..01c2af3 100644
--- a/src/mesa/main/transformfeedback.h
+++ b/src/mesa/main/transformfeedback.h
@@ -73,7 +73,8 @@ _mesa_BindBufferOffsetEXT(GLenum target, GLuint index, GLuint buffer,
extern void GLAPIENTRY
_mesa_TransformFeedbackVaryings(GLuint program, GLsizei count,
- const GLchar **varyings, GLenum bufferMode);
+ const GLchar * const *varyings,
+ GLenum bufferMode);
extern void GLAPIENTRY
_mesa_GetTransformFeedbackVarying(GLuint program, GLuint index,