Revert "Merge pull request #6864 from unknownbrackets/d3d9"

This reverts commit 7d6377295ac4c8abd9090388b6e37175b0deee25, reversing
changes made to 202c7192fa1c140df3b8c03b160f45bf09eceb43.