The magistrate has the power in all cases, where a witness resides or is in the county where the prosecution is pending, to issue an attachment for the purpose of enforcing the attendance of such witness; this he may do without having previously issued a subpoena for that purpose.
Tex. Code Crim. Proc. § 16.10