The Spurs had a last-second chance to tie or win the game but Matt Bonner's shot bounced off the rim.
Yao finished with 21 points and 14 rebounds. Alston had 16 points and six assists.
Tim Duncan led San Antonio with 24 points and 17 rebounds.
Fan wears 'Forced Sex University' shirt to insult FSU on Saturday
Exploding whale video goes viral on Internet