You should not wear glasses with a motorcycle helmet especially the framed eyeglasses, because it is not safe for you to do that. When you wear glasses with a motorcycle helmet, your motorcycle helmet may be full of frog while you are breathing and speaking. Imagine that your eyeglasses will also be full of frog and you could not see the things in front of you, including the roads. Therefore it is very dangerous to wear glasses with a motorcycle helmet while you are riding.
However, If you are heavy prescription problems and you have to wear glasses while riding, I suppose you can have a kind of half helmet which means your face are not covered with the half motorcycle helmet, so that your glasses may not be full of frog while you are breathing or speaking. And we know it is not good to wear glasses with a motorcycle helmet, you should avoid wearing glasses with helmet in case there will be some dangerous situation.