TORONTO — Warriors center Andrew Bogut made his first start since Nov. 7, leading a 114-102 victory over the Toronto Raptors on Monday.

But just when the Warriors were getting used to finally having their starting lineup intact, point guard Stephen Curry was knocked out of the game with a mild sprain of his right ankle.

“Just got to try to stay positive and hope it heals quickly,” Curry said.

Bogut, who missed 38 games to rehab his surgically repaired left ankle, was a bit rusty, but his presence was a noteworthy upgrade as he posted 12 points, eight rebounds and four blocks in 24 minutes.

Despite a big game from Raptors center Aaron Gray, who had a career-high 22 points to go with 10 rebounds, the Warriors held the Raptors to 43.7 percent shooting. They outscored the Raptors 62-34 in the paint, out-rebounded them by 12 and allowed just 12 second-chance points after giving up 57 the previous two games, both losses.

“It’s been a long season for me so far, a frustrating season mentally and physically,” Bogut said. “Just to be out there running up and down the court again, especially getting a win, it was very satisfying. … Just excited to be out there and play basketball again. It has been a bumpy ride, but I think it’s at a stage now where I am ready to progress.”

It didn’t take long for Bogut to have an impact. On the Warriors’ first possession, he got the ball on the low block, dribbled baseline, spun to the middle and dropped in a left-handed hook in the lane.

A couple minutes later, a touch pass from David Lee to Bogut led to an open dunk. Through his first six minutes, Bogut had four points and two rebounds.

He made an even bigger splash in the second quarter. He prompted a turnover as Gray tried to post him up. The next defensive possession, he blocked a driving layup attempt by DeMar DeRozan. His ensuing outlet pass was intercepted, leading to a two-on-one fast break for the Raptors. But Bogut thwarted that, too, blocking Gray’s floater in the lane.

He punched the air and let out a yell as the Warriors transitioned the other way, setting up Klay Thompson’s 3-pointer.

“You can tell we’re a different basketball team with him on the floor,” Warriors coach Mark Jackson said. “It was great to have him. Makes me a better coach. … He makes guys better, and he completes us as a team.”

Bogut will not play Tuesday at Cleveland. He said the plan is for him to play up to 25 minutes per game, and he won’t play back-to-back sets until after the All-Star break.

The Warriors might not have Curry either.

At the five-minute mark of the third quarter, he was driving to his left while trying to get down the middle of the lane. While splitting two defenders, Curry appeared to step on Gray’s foot. Curry hit the ground hard and was slow to get up. He tried to walk it off, and after signaling to Jackson he was fine, stayed in the game for just over a minute. Still wincing, he was replaced by Jarrett Jack.

For the next several minutes, Curry was looked at by the training staff, fidgeted with his brace and jostled his ankle, took multiple trips to the locker room and even tried to talk Jackson into letting him back in. Jackson sent assistant coach Pete Myers to watch Curry run in the hall. After Myers’ report, Jackson shut down Curry for the night.

“Just wanted to be smart,” Jackson said. “There was no need to put him back out there. He wanted to get back in the game, but I’ve got more interest in his future and our future. Funny thing is, he told me he knew he didn’t stand a chance once I sent my hit man to see him run in the back.”

Curry said he had no idea about his status for Tuesday. He will continue to receive treatment before testing it out during the game.

He compared Monday’s sprain to the one he sustained Jan. 16 at a shootaround. That kept him out two games.

Curry went the first 36 games without any problems from his right ankle, which was surgically repaired in April. But after more than a dozen sprains of that ankle in the last two-plus seasons, he knows the drill.

“Same situation, just have to see how it responds,” Curry said. “That’s just the game of basketball.”

The Warriors, who entered the fourth quarter with an 84-82 lead, had to close out the Raptors without their star point guard.

For offense, the Warriors turned to low-post specialist Carl Landry. He scored six straight for Golden State, four from the free-throw line, to get the offense going. After a Thompson jumper, rookie Harrison Barnes and Bogut converted driving layups to push the Warriors’ lead to 96-85 with 5:33 left.

But it was Golden State’s defense that took control of the game.

After a 3-pointer by Raptors guard John Lucas III to start the fourth, the Warriors held Toronto scoreless over the next seven minutes. The Raptors missed 10 consecutive shots and turned over the ball twice, paving the way for the Warriors’ run.

Barnes then put icing on the cake, throwing down a one-hand tomahawk dunk over Gray for a three-point play.

The Warriors won a game they had to have, snapping a two-game losing streak and keeping alive their chances of splitting the four-game trip.

“It was huge to get back into the winning ways and give ourselves a chance to make this into a successful road trip,” said Lee, who led the Warriors with 21 points, 12 rebounds and seven assists. “We needed this one, absolutely.”