It's not a glitch. It's total internal reflection. The photons go in, and are reflected back into the glass when they try to come out. IIRC the specific IOR of TPT glass was selected to cause this.
@people, this is a normal function of glass. It IS a glitch, but unlikly to be fixed because of the complexity of the photon code.
lol? did you used console?