Under the Texas Penal Code section on sexual offenses, it is a crime to electronically photograph or record a visual image of someone who is not in a bathroom or private dressing room without the other person's consent and "with intent to arouse or gratify the sexual desire of any person." The ruling does not address the constitutionality of the statute's latter part that involves the broadcast or transmission of images.
Looks to me like the court was struggling with the fact that statute was poorly written.
Most emotionally-charged, quickly drafted, knee-jerk "for the children" legislation is.