SoftwareRenderer code clean up.