What do the linked test results show? I assume you made those runs with the changed tests as in the patch. If so, it seems that this proposed behavior is correct for d3d8, but not for d3d9? If that's right, we should probably include this distinction in the implementation; and the d3d9 test should be changed to reflect actual behavior.
As an aside, the commit could be improved in terms of style: Don't Capitalize Every Word, fix oddly placed whitespace, and drop the `<br>`.
Thanks!