Make the dx9 renderer working in headless mode