Sand isn’t a uniform thing, for glass you can use wind blown sand from deserts because it’s melted. Which in practical terms is an unlimited resource as Si makes up 28% of the earths crust which is only behind Oxygen.
But, for extending beaches and most other uses you want textured sand that clumps together. As such people don’t mine river beds for large scale glassmaking as that sand is more valuable.