Henri Verbeet : wined3d: Move the num_untracked_materials lookup out of the main drawing loop.