The timing on when you can wear your glasses again after rhinoplasty depends on a few things:
Were there nasal bone fractures done during surgery. If there weren't then there isn't really any limitation to wearing glasses with the understanding that you may get some temporary depressions on the skin where the nose piece contacts your nose.
If you did have bone fractures done during surgery (osteotomies) then I usually tell patients to wait 6 weeks before wearing glasses again. While the nasal cast is on the first week it's okay to wear them, though.
The important point, though, is that you should follow whatever instructions the surgeon that actually did your surgery tells you.