[GLPainter] fixed rendering glitches