ported array to 1d texture

problem: first value of 1d-array is in each position