Without these dots, the glass could become loose and eventually fall out of the frame. These frits are also there for aesthetic purposes.