AUSTIN (AP) — Texas’ highest criminal appeals court has reinstated the 2015 sexual assault conviction of a former Baylor University football player whose case ignited a scandal that engulfed the nation’s largest Baptist school.

The Texas Court of Criminal Appeals said Wednesday that a lower court erred by overturning the conviction of Sam Ukwuachu based on text messages between the victim and a friend that had not been allowed in trial.

READ MORE: Book With Sexually Explicit Images And Themes Found In Keller ISD School Library

The trial court only allowed into evidence texts she sent after the assault. Ukwuachu’s attorney argued the earlier text messages would show the woman consented to sex.

READ MORE: The Aztecs 'Slowly Crush You': CBS Sports' Randy Cross Previews Fresno State-#21 San Diego State, Other Matchups

Ukwuachu was sentenced to six months in jail, but served an abbreviated sentence. The ruling allows him to continue appealing his conviction, but not on the text message issue.

MORE NEWS: Fort Worth Leaders Ignored Illegal Booze, Gambling As Money Ended Up In City Coffers On 'Hell's Half Acre'

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)