Discharge from the eye hardens, forming a 'crust'. Hardened, yellowish, sticky discharge can sometimes make your eyes feel glued shut.