Desmond's 13th homer, his sixth in June, tied the game leading off the fourth. Mitch Moreland had a tiebreaking two-run single later in the inning to put the Rangers ahead to stay.
Andrus cleared the bases with his triple to the wall in left-center that chased knuckleballer Steven Wright (8-5) in the fifth. Andrus scored on a wild pitch by Robbie Ross Jr., capping a five-run inning when all the runs were unearned after two errors and a passed ball.
Cesar Ramos (2-3), the third Texas pitcher, pitched 2 2/3 scoreless innings. The lefty struck out consecutive batters after taking over with runners and second and third, and one out in the sixth.