From feea85da065c9557da321e869a4d937385ab2310 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 13 Dec 2012 12:42:02 -0800 Subject: linker: Use helper variable sh This looks like a copy-and-paste left over. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke --- src/glsl/linker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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, -- cgit v1.2.3