mirror of
https://github.com/ocornut/imgui.git
synced 2026-07-28 03:26:38 +00:00
ImDrawData: fixed a regression in 1.92.9 where legacy ImDrawData::CmdListsCount was always 0.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user