| 2103 | //----------------------------------------------------------------------------- |
| 2104 | |
| 2105 | void ImDrawListSplitter::ClearFreeMemory() |
| 2106 | { |
| 2107 | for (int i = 0; i < _Channels.Size; i++) |
| 2108 | { |
| 2109 | if (i == _Current) |
| 2110 | memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again |
| 2111 | _Channels[i]._CmdBuffer.clear(); |
| 2112 | _Channels[i]._IdxBuffer.clear(); |
| 2113 | } |
| 2114 | _Current = 0; |
| 2115 | _Count = 1; |
| 2116 | _Channels.clear(); |
| 2117 | } |
| 2118 | |
| 2119 | void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) |
| 2120 | { |
no test coverage detected