glsl: Fix glGetActiveUniformsiv(GL_UNIFORM_BLOCK_INDEX).
authorEric Anholt <eric@anholt.net>
Mon, 23 Jul 2012 18:05:11 +0000 (11:05 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 7 Aug 2012 20:54:50 +0000 (13:54 -0700)
commit300315fe69ba275dda8a4786783c2bdd007d0758
treebd20d2f1cbbbaa42efd346a3c98a199759e93d3b
parentaf3fc6bb2836ce545c624bce2b47c3fd8cf4f9fa
glsl: Fix glGetActiveUniformsiv(GL_UNIFORM_BLOCK_INDEX).

Previously, we were returning the index into the UniformBlocks of one of the
linked shaders, when it's supposed to be the program global index.

Fixes piglit getactiveuniformsiv-uniform_block_index.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/link_uniforms.cpp