wined3d: Put vertex texture capability checking in its own function.