Swanson caught Brady McBride’s overthrown pass at the Bobcats 32, ran along the left sideline and broke one tackle before crossing the goal line to cap the scoring with 8:18 remaining.
McBride threw his third interception on the next series. Troy (4-3, 2-1 Sun Belt Conference) then ran out the final 6:26.
Vidal broke loose for a 45-yard touchdown run in the first quarter and had a 1-yard TD run in the third. Gunnar Watson was 22-of-29 passing for 182 yards for the Trojans. Watson threw a 33-yard touchdown pass to Tez Johnson, who finished with nine catches for 81 yards.
McBride completed 22 of 32 passes for 279 yards for Texas State (2-4, 1-1). He threw a 75-yard TD pass to Javen Banks and added a pair of short-yardage scoring throws late in the third quarter.
More AP college football: https://apnews.com/hub/college-football and https://twitter.com/AP--Top25.
Sign up for the AP’s college football newsletter: https://apnews.com/cfbtop25
College football coaching carousel: Latest buzz, top candidates, analysis of every vacancy
From Notre Dame and Oklahoma to Washington and Virginia Tech, it's already been a wild ride on the coaching carousel. Here's everything you need to know.
The College Football Playoff committee got the top four right, no question about it
The tension already had played out on the field, leaving the playoff pairings the way they should be, with the top four teams facing off.
Louisiana Ragin' Cajuns promote Michael Desormeaux to head coach
Co-offensive coordinator Michael Desormeaux has been promoted to Louisiana's head football coach, the school announced Sunday.
Miami, Mario Cristobal discussing Hurricanes' coaching job, sources say
Miami is set to make major investments in its program and wants to build around Mario Cristobal as coach and a new athletic director.
What Nick Saban thinks Alabama's big CFP challenge is
Alabama head coach Nick Saban discusses preparing for Cincinnati after defeating Georgia in the SEC title game.
Luke Fickell: Cincy is ready to step up against Bama
Cincinnati coach Luke Fickell reacts to the Bearcats making the College Football Playoff and the challenge they are facing going up against Alabama.