 On July 27, 2012, Gray was re-signed by the Raptors.On January 28, 2013, Gray recorded a career high 22 points, along with 10 rebounds, in a 114-102 loss to Golden State Warriors.On December 9, 2013, the Raptors traded Gray, along with Rudy Gay and Quincy Acy to the Sacramento Kings for Greivis Vásquez, Patrick Patterson, John Salmons, and Chuck Hayes.