AUSTIN, Texas (AP) — Shane Buechele came on for injured quarterback Sam Ehlinger early in the first quarter and No. 9 Texas beat Baylor 23-17 when the Bears’ final pass sailed through the back of the end zone Saturday.

Baylor quarterback Charlie Brewer drove the Bears from their own 3 to the Texas 17 before he had to rush his final three throws under intense pressure.

The victory makes Texas (6-1, 4-0 Big 12 Conference) bowl eligible.

Texas Freshman running back Keaontay Ingram ran for 110 yards, the Longhorns’ first 100-yard rushing effort of the season. Defensive end Charles Omenihu had two sacks and was chasing Brewer on the last three plays.

“We knew this wasn’t going to be easy and obviously when your starting QB goes out on the first drive, there could have been some panic, a little shock,” Texas coach Tom Herman said.

Buechele finished Texas’ opening drive after game officials made Ehlinger leave because his right, throwing hand was bleeding. Ehlinger went to the sideline and then the locker room before school officials announced he had injured his throwing shoulder. He returned to the sideline but didn’t play again and changed into street clothes.

After the game, Herman said Ehlinger has a shoulder sprain and would have an MRI to see if there is any ligament damage, but he hoped to have him throwing again in a few days.

Buechele was the full-time starter in 2016, when he set several school freshman passing records, but he hadn’t played yet this season. The Longhorns struggled to find any offensive rhythm for most of the game as Buechele passed for 184 yards with one touchdown and one interception.

Texas is bowl eligible in mid-October for the first time since 2009, the last year the Longhorns won the Big 12 and played for a national championship.

Texas had consecutive losing seasons from 2014-16 and didn’t get to the postseason in 2015 and 2016. The Longhorns have now qualified for bowl games in both of Herman’s seasons.

Brewer passed for 245 yards and a touchdown for the Bears (4-3, 2-2), who were just 1-11 last season.

“We are getting better and we’re getting tougher and we’re starting to figure this out,” Baylor coach Matt Rhule said. “I told them it’s OK this hurts, this should hurt, for the first time since I’ve been here I’ve saw tears in their eyes and I saw the older guys really hurting.”

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