Reordered assignment and centroid compute

Swizzled these steps so the centroid is always up to date when the
rendering context is updated. Still shows weaknesses in centroid
computation which need to be addressed.