Properly set up the context after a warp occurs.