Added guards to d3d vertex copy operations.