When a fine has been entered against a witness, but no trial of the cause takes place, and such witness afterward appears and testifies upon the trial thereof, it shall be discretionary with the judge, though no good excuse be rendered, to reduce the fine or remit it altogether; but the witness, in such case, shall, nevertheless, be adjudged to pay all the costs accruing in the proceeding against him by reason of his failure to attend.
Tex. Code Crim. Proc. § 24.10