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

docking
ocornut 5 years ago
parent 5af8a8c7e8
commit 78d5ccfb90

@ -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()

Loading…
Cancel
Save