Pornography (or what we now call pornography) dates back to antiquity. Good case can be made in fact that photography and film were only invented to capture sex. As a fan of antique porn I can tell you that the very first photos and films were nudes and sexual content.
But paintings of it existed too as in the unearthed remains of Pompeii and everywhere else. People've been making sexually explicit entertainment, religious accutrements, and other sex-related items all along. But only recently has it been villified.