mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-19 01:24:20 +00:00
Metrics: Fixed "Drawlists" section and per-viewport equivalent appearing empty (regression from c649aca).
(#6597, #6475, #6167, #5776, #5109, #4763, #3515, #1860)
This commit is contained in:
parent
2b1fc6f765
commit
226923fa7e
2 changed files with 3 additions and 4 deletions
|
|
@ -4566,10 +4566,7 @@ void ImGui::NewFrame()
|
|||
|
||||
// Mark rendering data as invalid to prevent user who may have a handle on it to use it.
|
||||
for (int n = 0; n < g.Viewports.Size; n++)
|
||||
{
|
||||
ImGuiViewportP* viewport = g.Viewports[n];
|
||||
viewport->DrawDataP.Clear();
|
||||
}
|
||||
g.Viewports[n]->DrawDataP.Valid = false;
|
||||
|
||||
// Drag and drop keep the source ID alive so even if the source disappear our state is consistent
|
||||
if (g.DragDropActive && g.DragDropPayload.SourceId == g.ActiveId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue