mesa: pass ctx to link_uniform_vars() to fix build error
authorBrian Paul <brianp@vmware.com>
Tue, 6 Jan 2009 20:59:14 +0000 (13:59 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 6 Jan 2009 21:04:17 +0000 (14:04 -0700)
src/mesa/shader/slang/slang_link.c

index 45c5f1db709afbb57e5d76df3ebf96bcead7c577..b2fd9554a66b540cabd8b6fc87a7134506ae1717 100644 (file)
@@ -222,7 +222,8 @@ link_varying_vars(struct gl_shader_program *shProg, struct gl_program *prog)
  * then the fragment/vertex parameter index, respectively, will be -1.
  */
 static GLboolean
-link_uniform_vars(struct gl_shader_program *shProg,
+link_uniform_vars(GLcontext *ctx,
+                  struct gl_shader_program *shProg,
                   struct gl_program *prog,
                   GLuint *numSamplers)
 {
@@ -593,13 +594,13 @@ _slang_link(GLcontext *ctx,
 
    /* link uniform vars */
    if (shProg->VertexProgram) {
-      if (!link_uniform_vars(shProg, &shProg->VertexProgram->Base,
+      if (!link_uniform_vars(ctx, shProg, &shProg->VertexProgram->Base,
                              &numSamplers)) {
          return;
       }
    }
    if (shProg->FragmentProgram) {
-      if (!link_uniform_vars(shProg, &shProg->FragmentProgram->Base,
+      if (!link_uniform_vars(ctx, shProg, &shProg->FragmentProgram->Base,
                              &numSamplers)) {
          return;
       }