AUSTIN, Texas (AP) -- Jared Goff passed for 268 yards and three touchdowns and California survived a wild 45-44 victory over Texas Saturday night when Longhorns kicker Nick Rose missed an extra point with 1:11 left to play.

Texas freshman quarterback Jerrod Heard had scored on a 45-yard run to cap a rally that brought Texas back from 21-points down. But Rose, who had kicked an 80-yard field goal in a video posted online over the summer, missed the extra point wide right.

Rose walked off the field holding his head. Heard stood on the sideline with his hand on his hips in disbelief.

More from FoxSports

Heard passed for 364 yards and ran for 163 and three touchdowns. He nearly had his helmet ripped off late in the third quarter when a rushing defensive lineman grabbed his facemask, but Texas (1-2) rallied from that point, trailing 45-24.

Khalfani Muhammad ran for 164 yards for California (3-0), including a 74-yard touchdown.

California seemed in complete control when Muhammad burst through the middle of the Texas defense, breaking tackles and outracing several tacklers to the end zone. The touchdown capped 31 straight points by California.

But Texas, which found new life behind their freshman quarterback, stormed back. The home crowd got into the game when California's James Looney grabbed Heard's facemask and turned his head backward. Heard stayed on the ground for a few minutes, but got up and Texas finished the drive with Heard's zig-zagging, sideline-to-sideline 13-yard touchdown run.

California didn't score in the fourth quarter and Texas kept grinding out yards and touchdowns. D'Onta Foreman's 27-yard run cut California's lead to 45-38 before Texas started its final drive from its 19. Heard's long run for the end zone had the game likely headed for overtime before Rose missed the kick.

Rose had to stay on the field to attempt an onside kick, which skipped across the field and out of bounds. Goff then took a knee to run out the clock.

Both teams rolled up and down the field mostly at will. California had 548 yards total offense and Texas had 650. Goff, who many consider a likely top NFL draft pick in 2016, picked apart the Longhorns secondary in the second and third quarters, throwing two touchdown passes to Kenny Lawler.

Heard was dynamic early and late and finished. Two turnovers late in the second and early in the third quarters led to a California field goal and touchdown, but he was the first Texas quarterback to pass for 300 yards and run for 100 in a game since Colt McCoy in 2009.