diff options
author | Brian Paul <[email protected]> | 2009-01-06 13:59:14 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-01-06 14:04:17 -0700 |
commit | 22ff5a7a0bad0a9a75a8bcd57e97780c66666249 (patch) | |
tree | d1c6a8b68b60c95899b3baa22fa81a1b7c98e210 /src | |
parent | 3740a06e28f4cd09e2a3dce2da60320aa9304df1 (diff) |
mesa: pass ctx to link_uniform_vars() to fix build error
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/shader/slang/slang_link.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/shader/slang/slang_link.c b/src/mesa/shader/slang/slang_link.c index 45c5f1db709..b2fd9554a66 100644 --- a/src/mesa/shader/slang/slang_link.c +++ b/src/mesa/shader/slang/slang_link.c @@ -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; } |