st/mesa: use 'array' local var to simplify the code a bit