An acquittal of the defendant exempts him from a second trial or a second prosecution for the same offense, however irregular the proceedings may have been; but if the defendant shall have been acquitted upon trial in a court having no jurisdiction of the offense, he may be prosecuted again in a court having jurisdiction.
Tex. Code Crim. Proc. § 1.11