From bb3db388d8d4c7c2276a1db27fadaa1c57f1b39c Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Tue, 6 Nov 2012 07:26:56 -0800 Subject: 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 --- src/mesa/main/transformfeedback.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/transformfeedback.h') diff --git a/src/mesa/main/transformfeedback.h b/src/mesa/main/transformfeedback.h index dec11ffa0d1..01c2af3599b 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, -- cgit v1.2.3