Match a colored block underneath the glass. Glass is also cleared if you blast a colored block underneath the glass with a bomb.