| 2030 | //----------------------------------------------------------------------------- |
| 2031 | |
| 2032 | void ImDrawListSplitter::ClearFreeMemory() |
| 2033 | { |
| 2034 | for (int i = 0; i < _Channels.Size; i++) |
| 2035 | { |
| 2036 | if (i == _Current) |
| 2037 | memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again |
| 2038 | _Channels[i]._CmdBuffer.clear(); |
| 2039 | _Channels[i]._IdxBuffer.clear(); |
| 2040 | } |
| 2041 | _Current = 0; |
| 2042 | _Count = 1; |
| 2043 | _Channels.clear(); |
| 2044 | } |
| 2045 | |
| 2046 | void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count) |
| 2047 | { |
no test coverage detected