glsl: Fix copying function's out to temp if dereferenced by array
Function's out variable could be an array dereferenced by an array func(v[w[i]])
, or something more complicated. Copy index in any case.
The regression was spotted in fs-inout-index-two-level.shader_test and bisected to 76c27e47
To fix I just removed idx->as_dereference_variable()
.
This change is not tested much because I'm not sure if the fix is a correct one, what do you think @tarceri?
Fixes: 76c27e47
Edited by Danylo Piliaiev