No problem entering or leaving India in that case, but sometimes hotels are flummoxed: they don't know which passport to register. (It should be the new one with the current entry stamp, not the old one with the visa.) I actually had one hotel turn me away because they were so afraid of making a mistake on the registration form.