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