Clean up bit clearing.

This commit is contained in:
Bobby Holley 2017-08-22 18:47:44 -07:00
parent 3c42792efa
commit 994074fca6
3 changed files with 8 additions and 9 deletions

View file

@ -878,11 +878,8 @@ where
}
}
}
if p == root {
// Make sure not to clear NODE_NEEDS_FRAME on the root.
p.clear_descendants_bits();
} else {
p.clear_dirty_bits();
}
}
// Make sure not to clear NODE_NEEDS_FRAME on the root.
root.clear_descendant_bits();
}