(D3D) Some changes