Henri Verbeet : wined3d: Retrieve the GL texture through a function.