Later , the mature gametophyte produces male or female gametes ( or both ) by mitosis .
At maturity , the gametophyte produces gametes by mitosis .