WDVV equations for pure Super-Yang-Mills theory

In the literature, there are two proofs that the prepotential of pure Super-Yang-Mills theory satisfies the Witten-Dijkgraaf-Verlinde-Verlinde (WDVV) equations. We show that these two methods are in fact equivalent.