ImDrawData: fixed a regression in 1.92.9 where legacy ImDrawData::CmdListsCount was always 0.

This commit is contained in:
ocornut
2026-07-26 15:42:48 +02:00
parent 01380c5797
commit a9e7a8c880
3 changed files with 18 additions and 6 deletions

View File

@@ -6243,7 +6243,9 @@ void ImGui::Render()
ImDrawData* draw_data = &viewport->DrawDataP;
for (ImDrawList* draw_list : draw_data->CmdLists)
draw_list->_PopUnusedDrawCmd();
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
draw_data->CmdListsCount = draw_data->CmdLists.Size;
#endif
g.IO.MetricsRenderVertices += draw_data->TotalVtxCount;
g.IO.MetricsRenderIndices += draw_data->TotalIdxCount;
}