There's no medical evidence that tight pants or warm weather exercise causes male sterility. Go ahead and google it. The most common phrase you'll see in the results is:
That is actually a myth. There is very good evidence that shows that tight jeans and tight underwear, as well as all types of clothing do not have any effect on sperm count. There is really no difference in boxers versus briefs, tight jeans versus loose pants.