mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Fonts: fixed PVS Studio false positive "expression 'cmd_count != draw_list->CmdBuffer.Size' is always false." (#8720, #8465)
Amend 608dd96
This commit is contained in:
parent
0218ddd575
commit
776897d3c9
1 changed files with 1 additions and 1 deletions
|
|
@ -5705,7 +5705,7 @@ begin:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Edge case: calling RenderText() with unloaded glyphs triggering texture change. It doesn't happen via ImGui:: calls because CalcTextSize() is always used.
|
// Edge case: calling RenderText() with unloaded glyphs triggering texture change. It doesn't happen via ImGui:: calls because CalcTextSize() is always used.
|
||||||
if (cmd_count != draw_list->CmdBuffer.Size)
|
if (cmd_count != draw_list->CmdBuffer.Size) //-V547
|
||||||
{
|
{
|
||||||
IM_ASSERT(draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ElemCount == 0);
|
IM_ASSERT(draw_list->CmdBuffer[draw_list->CmdBuffer.Size - 1].ElemCount == 0);
|
||||||
draw_list->CmdBuffer.pop_back();
|
draw_list->CmdBuffer.pop_back();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue