Ryan Phillippe Defends Homophobic Jokes in MacGruber

 Jordan Strauss/WireImage.com

Ryan Phillippe's latest comedy, MacGruber, contains a few homophobic quips — but the actor insists it's "all in a decent spirit."

"There aren’t that many gay jokes. I took my best gay friend with me to the screening and he loved it," the actor, 35, tells The Advocate of his SNL-inspired flick.

PHOTOS: Check out Ryan and other sexy, shirtless hunks

"The funny thing about MacGruber is that he’s a deplorable human being — he’s sexist, a little homophobic, a bit racist and a bumbling idiot — but somehow, and it’s a testament to how good of an actor Will Forte is, you still like him."

But Phillippe's fans may not be that forgiving after all. MacGruber debuted at No. 6 its opening weekend and generated a mere $7.9 million since hitting theaters theaters May 21.

"I have my own meter as to what is and isn’t offensive, but I might bounce something off of my gay friends to get another perspective," Phillippe says in the film's defense.

But don't give the actor too much flak — just last month, Phillippe admitted that he's "tired of getting s*** on" in the media after ex Abbie Cornish, 27, announced their split in a press release. "I don't feel like I deserve it," he told Howard Stern. "Things happen! How many people have you broken up with over your life?"

Sign up now for the Us Weekly newsletter to get breaking celebrity news, hot pics and more delivered straight to your inbox!

Want stories like these delivered straight to your phone? Download the Us Weekly iPhone app now!