Where it is made to appear by affidavit to a judge of the Court of Criminal Appeals, a justice of a court of appeals, or to a judge of the district or county court, that the bail taken in any case is insufficient in amount, or that the sureties are not good for the amount, or that the bond is for any reason defective or insufficient, such judge shall issue a warrant of arrest, and require of the defendant sufficient bond and security, according to the nature of the case.
Tex. Code Crim. Proc. § 16.16