What IS clear in the painting is the lower part of his baldric (sword belt) and the pistol butt, both of which are mid-18th century styled. Also, it looks like a typical blue bonnet with a red band.

One of these portraits is definitely based upon the other...!