glsl: Fix a reference to UniformBlocks during uniform linking.
authorEric Anholt <eric@anholt.net>
Fri, 20 Jul 2012 23:57:22 +0000 (16:57 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Aug 2012 18:47:49 +0000 (11:47 -0700)
commit71ba6de342b88dcf8ed3aa347da157b7724230e7
tree38908552780c9c4525edcf6652c3f4b9368f0909
parent7e42302e7188a783221d2b17a4bb07ee89cae367
glsl: Fix a reference to UniformBlocks during uniform linking.

When converting var->location from pointing at the program's UniformBlocks to
pointing at the linked shader's UniformBlocks, I missed this change.  It
usually worked out in the end because the two lists happen to be the same in
many testcases.

Fixes a valgrind complaint on
oglconform ubo-compile.cpp advanced.std140.2stage

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