An investigation is underway after former Wigan Athletic skipper Josh Magennis was the alleged victim of racist abuse at the weekend.