Update triangle example to clear every frame

  - Solves flickering under Windows due to clear only being called once
  - Consistent with other examples