Fixed up projection transform for d3d