From: Ian Romanick Date: Thu, 13 Dec 2012 20:42:02 +0000 (-0800) Subject: linker: Use helper variable sh X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=feea85da065c9557da321e869a4d937385ab2310;p=mesa.git linker: Use helper variable sh This looks like a copy-and-paste left over. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 70f3d5bedf7..63548e07117 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -885,8 +885,8 @@ link_intrastage_shaders(void *mem_ctx, for (unsigned i = 0; i < num_shaders; i++) { struct gl_shader *sh = shader_list[i]; - for (unsigned j = 0; j < shader_list[i]->NumUniformBlocks; j++) { - link_assign_uniform_block_offsets(shader_list[i]); + for (unsigned j = 0; j < sh->NumUniformBlocks; j++) { + link_assign_uniform_block_offsets(sh); int index = link_cross_validate_uniform_block(mem_ctx, &uniform_blocks,