linker: Use helper variable sh
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 13 Dec 2012 20:42:02 +0000 (12:42 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Sat, 19 Jan 2013 01:35:32 +0000 (17:35 -0800)
This looks like a copy-and-paste left over.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/linker.cpp

index 70f3d5bedf799cec8d0c7c3fa64463d14084b1d0..63548e07117dd93443bf09eaf6950344dcc9d077 100644 (file)
@@ -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,