I don't think that glaucoma would be picked up by a routine aviation medical. However, if you need glasses to pass a class 1 then you now require a full optitians report which includes pressures. It is would be to your own benefit to have them checked anyway.
The subject was discussed
here
Airclues