It was skipping the second vertex assignment and using uninitialized garbage when assembling the corresponding triangle.