If worried about stacking rocks straight on the glass,then watch above video of a small aquarium with lots off rocks and guy even stands on the Rocks also.and underneath bottom aquarium not fully supported as tank sitting on 2 pieces off wood fir extra demonstration of strength off glass tanks.
Generally the smaller the aquarium the thinner the glass and larger the aquarium, the thicker the glass so even stronger ,some glass is tempered so really strong but cannot drill as just will shatter I've read lots of times ( but I have read some say can drill tempered glass,but I've no experienced off trying to drill tempered glass but I think in my opinion it's false as cant drill tempered )
But anyway stack rocks in glass and if adding sand ,add sand after rocks so rocks on glass then sand around ,especially if adding 12 inch engineer gobies that continually moving sand as they called engineer gobies for a reason ha ha