|
@@ -1859,7 +1859,6 @@ void ImGui::AddDrawListToDrawDataEx(ImDrawData* draw_data, ImVector<ImDrawList*>
|
|
|
|
|
|
// Add to output list + records state in ImDrawData
|
|
|
out_list->push_back(draw_list);
|
|
|
- draw_list->_PopUnusedDrawCmd();
|
|
|
draw_data->CmdListsCount++;
|
|
|
draw_data->TotalVtxCount += draw_list->VtxBuffer.Size;
|
|
|
draw_data->TotalIdxCount += draw_list->IdxBuffer.Size;
|
|
@@ -1868,6 +1867,7 @@ void ImGui::AddDrawListToDrawDataEx(ImDrawData* draw_data, ImVector<ImDrawList*>
|
|
|
void ImDrawData::AddDrawList(ImDrawList* draw_list)
|
|
|
{
|
|
|
IM_ASSERT(CmdLists.Size == CmdListsCount);
|
|
|
+ draw_list->_PopUnusedDrawCmd();
|
|
|
ImGui::AddDrawListToDrawDataEx(this, &CmdLists, draw_list);
|
|
|
}
|
|
|
|