Need to take into account that gl_Position[i] needs to be rewritten as gl_out[i].gl_Position instead.