When the surrender is made at any other time than during the session of the court, the sheriff may take the necessary bail bond, but if the defendant fails or refuses to give other bail, the sheriff shall take him before the nearest magistrate; and such magistrate shall issue a warrant of commitment, reciting the fact that the accused has been once admitted to bail, has been surrendered, and now fails or refuses to give other bail.
Tex. Code Crim. Proc. § 17.18