That really depends- if we get on war footing to address the problem like we confronted WW2 perhaps. If we procrastinate hunger, water scarcity, and conflict have a tendency to be destructive to knowledge.
So you're postulating that hunger will get much worse than it is today, without really tremendous population growth, and with significant technological opportunity available in terms of applied computation/robotics and genetic engineering. This seems like an emotional argument, not a scientific one.
Water will still exist. Soil will still exist. Short of postulating worst-case scenarios (which are possible), this is all stuff we can handle with existing technology, much less the technology of a century from now.