The 24-year-old actor had no hesitation in accepting the gay role, saying that the liberal way he was raised helped to form his open views on the subject.
Gyllenhaal tells British magazine Empire, "As soon as I read the script I wanted to do it.
"A lot of people have asked me, 'Were you worried about the sex scenes?' And you know, maybe it's just that I take these things for granted, because I live in LA and some of my close friends and family are gay, and I grew up in a generation where it's not a problem.
"It's not my fault if people disagree with my ideas, 'cos that's how I was raised."