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