Made polygon render logic more specific.