Matthew McConaughey stopped by the Texas Capitol to support his former high school on its state championship title earlier today.

While congratulating the Longview Lobos football team for winning the UIL 6A Division II state championship back in December, McConaughey kept it a bit casual and broke a widely accepted rule on the Senate floor: no blue jeans.

Hmmm. Is Mr. McConaughey in violation of Senate's no-blue jeans rule?#txlegepic.twitter.com/FHIcYe719n

— kherman (@kherman)March 6, 2019 

But apparently being an Academy Award winner has some perks on the Senate floor. McConaughey, a 1988 Longview graduate, was allowed to stay in his rugged-meets-professional attire.

Just talked to the Sergeant-at-Arms, the man in charge of enforcing dress code violations, and it seems like exceptions are made for guests!https://t.co/EgSijILHqz

— Arya Sundaram (@arya_sundaram)March 6, 2019 

Guests are not given instructions about blue jeans, but they prefer that guests don't wear them, Secretary of the Senate Patsy Spaw told the American-Statesman. McConaughey was given instructions regarding a coat and tie.

This isn't the first time rules have been bent for a special guest. Willie Nelson wore jeans and T-shirt when he appeared on the Senate floor in 2003.

The Senators and their staffs didn't seem to mind the exception — McConaughey stood for pictures for 20 minutes after they lined up, the Houston Chronicle reports.

RELATED: Herman: Texas Senators nitpicky about pants fabric