File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ Breaking changes:
39
39
40
40
Other changes:
41
41
42
+ - Fixed cases where CTRL+Tab or Modal can occasionally lead to the creation of ImDrawCmd with
43
+ zero triangles, which would makes the render loop of some backends assert (e.g. Metal with
44
+ debugging, Allegro). (#4857, #5937)
42
45
- Inputs, Scrolling: better selection of scrolling window when hovering nested windows
43
46
and when backend/OS is emitting dual-axis wheeling inputs (typically touch pads on macOS).
44
47
We now select a primary axis based on recent events, and select a target window based on it.
Original file line number Diff line number Diff line change @@ -449,8 +449,7 @@ void ImDrawList::_PopUnusedDrawCmd()
449
449
{
450
450
if (CmdBuffer.Size == 0 )
451
451
return ;
452
- ImDrawCmd* curr_cmd = &CmdBuffer.Data [CmdBuffer.Size - 1 ];
453
- if (curr_cmd->ElemCount == 0 && curr_cmd->UserCallback == NULL )
452
+ for (ImDrawCmd* curr_cmd = &CmdBuffer.Data [CmdBuffer.Size - 1 ]; curr_cmd->ElemCount == 0 && curr_cmd->UserCallback == NULL ; curr_cmd--)
454
453
CmdBuffer.pop_back ();
455
454
}
456
455
You can’t perform that action at this time.
0 commit comments