Fix drawing counter in GiLayerRender.