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

@@ -2340,9 +2340,6 @@ void ImDrawData::AddDrawList(ImDrawList* draw_list)
{
draw_list->_PopUnusedDrawCmd();
ImGui::AddDrawListToDrawDataEx(this, &CmdLists, draw_list);
#ifndef IMGUI_DISABLE_OBSOLETE_FUNCTIONS
CmdListsCount = CmdLists.Size;
#endif
}
// For backward compatibility: convert all buffers from indexed to de-indexed, in case you cannot render indexed. Note: this is slow and most likely a waste of resources. Always prefer indexed rendering!