Physics and then materials science. I haven't noticed that it's been a problem, either from actual work or getting pestered by recruiters. But I've mostly been in work related to scientific computing so far, where non-CS degrees are almost more the rule than the exception.