Cleanup Direct3D projection code.