| 1664 | //----------------------------------------------------------------------------- |
| 1665 | |
| 1666 | void ImDrawListSplitter::ClearFreeMemory() |
| 1667 | { |
| 1668 | for (int i = 0; i < _Channels.Size; i++) |
| 1669 | { |
| 1670 | if (i == _Current) |
| 1671 | memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again |
| 1672 | _Channels[i]._CmdBuffer.clear(); |
| 1673 | _Channels[i]._IdxBuffer.clear(); |
| 1674 | } |
| 1675 | _Current = 0; |
| 1676 | _Count = 1; |
| 1677 | _Channels.clear(); |
| 1678 | } |
| 1679 | |
| 1680 | void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) |
| 1681 | { |
no test coverage detected