| 92 | } |
| 93 | |
| 94 | void ClipNode::cleanup() { |
| 95 | if (_flags.isOff(Node::Cleanup)) { |
| 96 | Node::cleanup(); |
| 97 | if (_stencil) { |
| 98 | if (!_stencil->getParent()) { |
| 99 | _stencil->cleanup(); |
| 100 | } |
| 101 | _stencil = nullptr; |
| 102 | } |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | void ClipNode::drawFullScreenStencil(uint8_t maskLayer, bool value) { |
| 107 | SharedRendererManager.flush(); |