wined3d: Move texture loading to LoadLocation.