Direct photon production at the CERN proton-antiproton collider