SoftwareRenderer: Avoid clearing when there is nothing to clear.