Follow The Fan: Facebook | Twitter

ARLINGTON (105.3 The Fan/AP) – One swing of the bat and the Rangers fortunes were changed.

Mike Napoli hit a game-winning three-run home run in the 9th inning and Texas walked it off on the San Diego Padres 5-2 on Thursday night.

The Rangers had been held scoreless by San Diego starter Clayton Richard until Napoli hit his first home run 433 feet to left on the first pitch of the eighth inning.

Napoli topped that with a 448-foot shot into the club-level seats higher in left field to end a four-run ninth off Padres closer Brandon Maurer (0-2).

Elvis Andrus started the ninth-inning rally with a one-out single before Jonathan Lucroy followed with his third hit, looping a single that dropped just in front of diving center fielder Manual Margot. Rougned Odor then singled through the left side of the infield to drive home Andrus with the tying run and bring Napoli to the plate.

Sam Dyson (1-4), the demoted Rangers closer, worked around two hits in a scoreless ninth.

The Rangers host the Oakland A’s for the first of three in Arlington on Friday night. Catch the game starting at 6:30 on 105.3 The Fan.

(© Copyright 2017 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)