wined3d: Get resource info from the texture in context_setup_target().