Sec. 3. If a defendant convicted of a felony is sentenced to death or to life in the Texas Department of Criminal Justice or is ineligible for release on bail pending appeal under Article 44.04(b) and gives notice of appeal, the defendant shall be transferred to the department on a commitment pending a mandate from the court of appeals or the Court of Criminal Appeals.