Comment 2 for bug 784923

Hi david, you're completely right. (This should be on line 771 by the way,
not 711 as in the bug report)

      if (do_sync == false) {
        presentation_params->SwapEffect = D3DSWAPEFFECT_FLIP;
        presentation_params->PresentationInterval =
D3DPRESENT_INTERVAL_IMMEDIATE;
      }
      presentation_params->SwapEffect = D3DSWAPEFFECT_DISCARD;

there should an else or the order of the two swapped in my earlier proposal.
I think I was blinded by the redundant if
statement in the earlier block and wasn't thinking clearly.

Unfortunately, when i was testing, the line

 presentation_params->PresentationInterval = D3DPRESENT_INTERVAL_IMMEDIATE;

had the most effect and masked out my carelesness. Thanks for catching it!