The judge trying the cause under habeas corpus may make such order as is deemed right concerning the cost of bringing the defendant before him, and all other costs of the proceeding, awarding the same either against the person to whom the writ was directed, the person seeking relief, or may award no costs at all.
Tex. Code Crim. Proc. § 11.50