The outputs are the same. For the second one you have doubled the sine wave amplitude and moved it down by half its amplitude, and you have done the same with the triangular test function. Doing the same to both doesn't change the times when the two curves cross, so the PWM remains the same.