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
Bad beats, door busters and thanksgiving leftovers highlight weekend in betting
Jason Fitz recaps some of the wildest plays and worst bad beats from the weekend, including Utah State-Boise State and Giants-Cowboys.
LSU QB Jayden Daniels in walking boot, but avoided serious ankle sprain
LSU QB Jayden Daniels is wearing a walking boot to help with a sprained ankle, but coach Brian Kelly said he hopes he'll be able to practice Tuesday.
Grading CFB coach hires: Luke Fickell to Wisconsin, Kenny Dillingham to ASU, Matt Rhule to Nebraska
As the coaching carousel kicks into high gear, we grade every major hire.
Georgia Tech quarterback Jeff Sims to enter transfer portal
Jeff Sims, a three-year starter for the Yellow Jackets who missed the final five games of the season after spraining a foot, announced Sunday he will enter the transfer portal.
Tulsa fires coach Philip Montgomery after 8 seasons
Tulsa has fired football coach Philip Montgomery after a 5-7 season.
Harbaugh 'all good' with Wolverines planting flag at OSU
A day after Michigan upset Ohio State, and after the Wolverines planted their flag at midfield, coach Jim Harbaugh said the celebratory move was "all good" in a rivalry full of traditions, and that "I want to get that flag and put it in our museum."