From: Brian Paul Date: Tue, 6 Jan 2009 20:59:14 +0000 (-0700) Subject: mesa: pass ctx to link_uniform_vars() to fix build error X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=22ff5a7a0bad0a9a75a8bcd57e97780c66666249;p=mesa.git mesa: pass ctx to link_uniform_vars() to fix build error --- 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; }