glsl: Fix up use of wrong index value for array