Does glaucoma affect cognitive function