glsl: fix bug in sampler array indexing
authorBrian Paul <brianp@vmware.com>
Wed, 26 Aug 2009 17:39:24 +0000 (11:39 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 26 Aug 2009 17:39:31 +0000 (11:39 -0600)
commit04d170794a22d93d58afeb5d0930e06f85964f9a
tree7c69b8c0fcefed3f7302958b378951e7fdc9e9ec
parentbf7e4b10cbed496a12c8be17531c9cb7da1be177
glsl: fix bug in sampler array indexing

Need to add the 'offset' parameter when indexing the parameter array.
Before, if we were setting arrays of samplers, we were actually only
setting the 0th sampler's value.

Because of how progs/glsl/samplers.c is constructed, this wasn't showing
up as a failure in the samplers_array output.
src/mesa/shader/shader_api.c