Clean and change to DirectX