Also playing big roles in the victory were Alan Anderson, who scored 24 points, and DeMar DeRozan with 19 and seven boards.
Ed Davis contributed 13 points for the Raptors, who won a second straight after breaking a six-game losing streak.
The Rockets, meanwhile, got 28 points from James Harden as they fell for fourth time in six contests.
Dog comes home gnawing on human bone
Julius Randle breaks leg during NBA debut