Render smudges beneath resources.

Fixes #6270.
Maybe leave a comment here? I can see someone reintroducing this bug if they don't know any better.