| 1681 | //----------------------------------------------------------------------------- |
| 1682 | |
| 1683 | void ImDrawListSplitter::ClearFreeMemory() |
| 1684 | { |
| 1685 | for (int i = 0; i < _Channels.Size; i++) |
| 1686 | { |
| 1687 | if (i == _Current) |
| 1688 | memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again |
| 1689 | _Channels[i]._CmdBuffer.clear(); |
| 1690 | _Channels[i]._IdxBuffer.clear(); |
| 1691 | } |
| 1692 | _Current = 0; |
| 1693 | _Count = 1; |
| 1694 | _Channels.clear(); |
| 1695 | } |
| 1696 | |
| 1697 | void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) |
| 1698 | { |
no test coverage detected