wined3d: Retrieve the GL texture through a function.