[Bug 832] Add Direct3D support