Credit: Bennett Raglin/Getty Images

Joel McHale has joined many other notable names in protesting North Carolina’s recently passed HB2 law, which prohibits local governments from enacting anti-discrimination measures.

While performing a comedy show at the Durham Performing Arts Center on Friday, McHale wore a homemade LGBTQ T-shirt and announced that all proceeds from the show would go to the LGBTQ Center of Durham.

A video of the performance features a bewildered McHale expressing his distaste for the controversial law, which he calls stupid and “f—— crazy,” and making the commitment to donate “every single dime” he earned from the show to the city’s LGBTQ organization.

“Joel is vehemently opposed to HB2 and knows there are many in Durham (which recently passed a measure condemning the law) that share the feeling,” the actor’s rep said in a statement to PEOPLE. “He felt this was a good way to raise awareness and much needed funds for a local center that is on the front line of this important cause.”

Fans in attendance at Friday night’s show took to social media to praise McHale’s activism.

On Friday, Bruce Springsteen canceled his Greensboro, North Carolina, concert in protest of HB2, CNN reports, joining PayPal, Apple, Facebook, and other big names in criticizing the state’s law.

—Reporting by Elizabeth Leonard