AUSTIN (AP) Texas quarterback Garrett Gilbert, who lost his starting job after the second game, will miss the rest of the season for the No. 19 Longhorns after having shoulder surgery.

Gilbert was hurt in the first game against Rice but the injury was not disclosed until Tuesday. Gilbert started the next game against BYU and was pulled in the second quarter and demoted to third string last week.

Texas athletic trainer Kenny Boyd says Gilbert is expected to make a full recovery. Details of Tuesday’s injury were not disclosed.

In a statement, Gilbert says his shoulder was getting progressively worse and doctors recommended last week that he have surgery.

(Copyright 2011 by The Associated Press. All Rights Reserved.)