glretrace: Don't attempt to replay failed CGL calls.
glretrace: Obey recorded CGL context profile on a per-pixelformat basis.

Plus a few minor changes to enable that.