mesa: keep track of the current variable in add_uniform_to_shader