mesa: Fix const correctness of API implementation functions.
authorPaul Berry <stereotype441@gmail.com>
Tue, 6 Nov 2012 15:26:56 +0000 (07:26 -0800)
committerPaul Berry <stereotype441@gmail.com>
Mon, 12 Nov 2012 18:53:57 +0000 (10:53 -0800)
commitbb3db388d8d4c7c2276a1db27fadaa1c57f1b39c
tree1968d9110ee59da14f0fabbb8c189b8a7ecd255a
parent1a1db1746db82efc7f0643508886dfc78a15eb71
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>
src/mesa/main/shaderapi.c
src/mesa/main/shaderapi.h
src/mesa/main/transformfeedback.c
src/mesa/main/transformfeedback.h