Most glasses, if properly fitted, will not fall off your head during a ride, even those more extreme ones. That doesn't mean they definitely won't, however, so it is a risk. If I wear glasses to ride, I will hold onto them with one hand while going round the track just in case.