Witnesses for the State or defendant may be required by the magistrate, upon the examination of any criminal accusation before him, to give bail for their appearance to testify before the proper court. A personal bond may be taken of a witness by the court before whom the case is pending.
Official text of the Texas Code of Criminal Procedure as published by the Texas Legislative Council.