fixed a bug with new d3d routine
Signed-off-by: duketwo <duketwoqq@gmail.com>
Merge pull request #568 from duketwo/BleedingEdge

fixed a bug with new d3d routine