make _mesa_combine_programs() params const
authorBrian <brian.paul@tungstengraphics.com>
Mon, 29 Oct 2007 22:38:53 +0000 (16:38 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 30 Oct 2007 17:32:52 +0000 (11:32 -0600)
src/mesa/shader/program.c
src/mesa/shader/program.h

index 0e420179bc536fe6e4dc121b8802f541169f2994..2d8b8877915187c10a623f97079aa88abb72579f 100644 (file)
@@ -460,7 +460,8 @@ adjust_param_indexes(struct prog_instruction *inst, GLuint numInst,
  */
 struct gl_program *
 _mesa_combine_programs(GLcontext *ctx,
-                       struct gl_program *progA, struct gl_program *progB)
+                       const struct gl_program *progA,
+                       const struct gl_program *progB)
 {
    struct prog_instruction *newInst;
    struct gl_program *newProg;
index 02faa706d94c48dd102b5df10f3a01a52f214110..4b7297e4c65edb1f589fd823fafbc1502a2a3e05 100644 (file)
@@ -90,7 +90,8 @@ _mesa_clone_program(GLcontext *ctx, const struct gl_program *prog);
 
 extern struct gl_program *
 _mesa_combine_programs(GLcontext *ctx,
-                       struct gl_program *progA, struct gl_program *progB);
+                       const struct gl_program *progA,
+                       const struct gl_program *progB);
 
 extern GLint
 _mesa_find_free_register(const struct gl_program *prog, GLuint regFile);