Adding safe release directx