MCPcopy Create free account
hub / github.com/Raais/ImStudio / ClearFreeMemory

Method ClearFreeMemory

src/third-party/imgui/imgui_draw.cpp:1675–1687  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1673//-----------------------------------------------------------------------------
1674
1675void ImDrawListSplitter::ClearFreeMemory()
1676{
1677 for (int i = 0; i < _Channels.Size; i++)
1678 {
1679 if (i == _Current)
1680 memset(&_Channels[i], 0, sizeof(_Channels[i])); // Current channel is a copy of CmdBuffer/IdxBuffer, don't destruct again
1681 _Channels[i]._CmdBuffer.clear();
1682 _Channels[i]._IdxBuffer.clear();
1683 }
1684 _Current = 0;
1685 _Count = 1;
1686 _Channels.clear();
1687}
1688
1689void ImDrawListSplitter::Split(ImDrawList* draw_list, int channels_count)
1690{

Callers 3

ShutdownMethod · 0.45
_ClearFreeMemoryMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected