WACO, Texas (AP) -- Colt McCoy overthrew a wide-open receiver in the end zone, then the Texas quarterback made things worse with a bad pitch and personal foul penalty on the next play.
There were also two interceptions, including a perfect throw to a Baylor linebacker right after halftime.
Even with all those mistakes, McCoy still wound up having a solid game and the Longhorns (No. 22 BCS, No. 19 AP) beat Baylor again, 31-10 Saturday. It was their 10th straight victory in the series.
"We still had the energy," said McCoy, who was 25-of-34 for 293 yards and a touchdown with 44 yards rushing. "We competed even when we didn't play well. We made some mistakes. I personally made some mistakes."
While the outcome wasn't as lopsided as usual -- Texas won the previous nine by an average of 41 points -- the margin was a bit deceiving.
Texas (6-2, 2-2 Big 12) still led by only a touchdown when Deon Beasley intercepted a pass with nine minutes left at the Baylor 43. Five plays later, including a 31-yard pass from McCoy to Jamaal Charles, Vondrell McGee scored on a 4-yard run to make it 24-10.
Marcus Griffin returned another interception 91 yards for a touchdown with 5:47 left for Texas, which has followed its first 0-2 conference start since 1956 with two victories.
"I'm not sure we would have won this game at the beginning of the season," Texas coach Mack Brown said. "The demeanor of the coaches and players ... they never, ever, thought that they had a chance to lose this game."
Michael Machen threw three interceptions while completing 25 of 44 passes for 231 yards and a touchdown in his first start for Baylor (3-5, 0-4). His only pass attempt before Saturday had been intercepted.
The Bears led 7-3 after Machen's 17-yard TD pass to Thomas White midway through the second quarter, set up by McCoy's mistake-filled sequence.
Texas had third-and-goal from the 1 when McCoy overthrew Peter Ullman, who leaped and couldn't come down with the ball in the back on the end zone.
"I don't know what that was," McCoy said. "We were kind of off base. He stopped and I was thinking that he was going to keep going."
The Longhorns then went for it, but McCoy's pitch was behind McGee and fumbled. The ball bounced into the hands of Brandon Stiggers, who returned it 60 yards before being dragged down by McGee and McCoy, who grabbed the returner's facemask and drew a 15-yard penalty. Baylor scored on the next play.
"We thought we had a shot at them," said fifth-year coach Guy Morriss, whose job appears in jeopardy. "It was tough football for the kids. They played hard and got themselves ready to play, like you would like to see them play every week."
McCoy put the Longhorns right back in front. He ran 13 yards to open the ensuing drive and then completed three straight passes, the last a 23-yard TD to Nate Jones.
Stiggers also had an interception early in the second quarter on a deflected pass, but Baylor gave it back three plays later when Machen's pass was intercepted by Jared Norton.
On the opening drive of the third quarter, McCoy threw a pass right to linebacker Joe Pawelek.
"We definitely didn't play perfect, but it was better than the past two or three performances," Pawelek said. "We came out strong, and we were playing well, but it's frustrating."
After that interception, McCoy completed nine of his last 10 passes for 131 yards, including five straight for 61 yards with two rushes for 17 yards. The drive ended with Chris Ogbonnaya's 3-yard TD.
Machen started in place of Blake Szymanski, who was limited in practice after sustaining a concussion in last week's 58-10 loss at Kansas. A change could have been coming anyway since Szymanski had only one TD pass in three Big 12 games after 14 in four non-conference games.
Machen's first pass was a high floater that David Gettis caught for a 43-yard gain to the Texas 27, but Baylor went backward from there and Caleb Allen's 50-yard field goal attempt went wide right. Allen kicked a 35-yarder in the fourth quarter.
Texas' opening drive stalled at the 26 with a fake field goal that resulted in an incompletion. After a third-down incompletion on the next drive, McCoy yanked his chin strap off as he walked off the field.
"Colt's a warrior out there," Quan Cosby said. "He's always ready to pick it up. He's a huge leader out there and we look to him."
SEC Championship game features 2 of nation's top defenders
Alabama’s Will Anderson wreaks more havoc in opposing backfields than any college player in the country. Georgia’s Jordan Davis anchors the best defense in college football.
Mark Stoops agrees to contract extension with Kentucky through 2027 football season
Kentucky and head coach Mark Stoops have agreed on a contract extension through the 2027 season, the school announced Tuesday.
Jacksonville Jaguars coach Urban Meyer not interested in leaving NFL for college football jobs, source says
Jaguars coach Urban Meyer isn't interesting in leaving the NFL to take a college football coaching job amid speculation he might be interested in the Notre Dame opening, a source told ESPN.
Notre Dame AD not surprised by Brian Kelly's decision to leave
Notre Dame athletic director Jack Swarbrick discusses Brian Kelly's decision to leave for LSU.
College football coaching carousel: Latest buzz, top candidates, analysis of every vacancy
From LSU and USC to Washington and Virginia Tech, it's already been a wild ride on the coaching carousel. Here's everything you need to know.
Notre Dame athletic director Jack Swarbrick not surprised by Brian Kelly's departure, won't put timetable on search for new head football coach
Notre Dame athletic director Jack Swarbrick says he sensed that football coach Brian Kelly was restless and was not surprised by Kelly's decision to leave for LSU.