The Firearm Blog has video and photos from a Redditor who designed a light mount for Glock. It actually works for several rounds. It is hard to tell if it will last for more extended use, but it is interesting nonethless.
http://www.thefirearmblog.com/blog/2014/09/15/3d-printed-glock-light-mount/
From: The Firearm Blog