This fixes an issue when rendermask/scissor box is updated right after making an entity visible (e.g. widgets)