ImDrawList: PushColumnsBackground(): Fixed incorrect assert. (#3163)

This commit is contained in:
ocornut 2020-06-06 16:44:31 +02:00
parent 5af8a8c7e8
commit 78d5ccfb90

View File

@ -7553,7 +7553,7 @@ void ImGui::PushColumnsBackground()
int cmd_size = window->DrawList->CmdBuffer.Size;
PushClipRect(columns->HostClipRect.Min, columns->HostClipRect.Max, false);
IM_UNUSED(cmd_size);
IM_ASSERT(cmd_size == window->DrawList->CmdBuffer.Size); // Being in channel 0 this should not have created an ImDrawCmd
IM_ASSERT(cmd_size >= window->DrawList->CmdBuffer.Size); // Being in channel 0 this should not have created an ImDrawCmd
}
void ImGui::PopColumnsBackground()