Merge backface cull and check for edge-on triangles into one place.