diff options
author | Ian Romanick <[email protected]> | 2012-12-13 12:42:02 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-01-18 17:35:32 -0800 |
commit | feea85da065c9557da321e869a4d937385ab2310 (patch) | |
tree | 7b74c5480778dda7898cf25c1dc7e0901d74ca4d /src/glsl/linker.cpp | |
parent | db718e2472c24b4954665c5e696c406d25fd389a (diff) |
linker: Use helper variable sh
This looks like a copy-and-paste left over.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/linker.cpp')
-rw-r--r-- | src/glsl/linker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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, |