Tex. Penal Code § 22.06
(a) The victim's effective consent or the actor's reasonable belief that the victim consented to the actor's conduct is a defense to prosecution under Section 22.01 (Assault), 22.02 (Aggravated Assault), or 22.05 (Deadly Conduct) if:
(2) the victim knew the conduct was a risk of:
Acts 1973, 63rd Leg., p. 883, ch. 399, Sec. 1, eff. Jan. 1, 1974.
Amended by Acts 1993, 73rd Leg., ch. 900, Sec. 1.01, eff. Sept. 1, 1994.
Acts 2007, 80th Leg., R.S., Ch. 273 (H.B. 184), Sec. 1, eff. September 1, 2007.