Added initialization of DirectX