Fixed DirectX 9
I accidentally forgot to include a few things in that last commit.
Merge pull request #277 from RobertBColton/master

Fixed DirectX 9