God has spoken out against people who are committing adultery. This goes for not only people that are having affairs, but those people that are having sex outside of marriage, or looking at pornography.
Pornography is adultery in God’s eyes. And because of this, He does not tolerate it either. This is why this vial sin is on the list of willful sins that will keep a person out of heaven when they die.