| 1708 | //----------------------------------------------------------------------------- |
| 1709 | |
| 1710 | void ImDrawListSplitter::ClearFreeMemory() |
| 1711 | { |
| 1712 | for (int i = 0; i < _Channels.Size; i++) |
| 1713 | { |
| 1714 | if (i == _Current) |
| 1715 | memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again |
| 1716 | _Channels[i]._CmdBuffer.clear(); |
| 1717 | _Channels[i]._IdxBuffer.clear(); |
| 1718 | } |
| 1719 | _Current = 0; |
| 1720 | _Count = 1; |
| 1721 | _Channels.clear(); |
| 1722 | } |
| 1723 | |
| 1724 | void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) |
| 1725 | { |
no test coverage detected