Skip to content

Commit

Permalink
Metrics: Fixed "Drawlists" section and per-viewport equivalent appear…
Browse files Browse the repository at this point in the history
…ing empty (regression from c649aca).

(#6597, #6475, #6167, #5776, #5109, #4763, #3515, #1860)
  • Loading branch information
ocornut committed Aug 6, 2023
1 parent 2b1fc6f commit 226923f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Other changes:
v_max=INT_MAX (#6675, #6679) [@jbarthelmes]
- ImDrawList: Fixed OOB access in _CalcCircleAutoSegmentCount when passing excessively
large radius to AddCircle(). (#6657, #5317) [@EggsyCRO, @jdpatdiscord]
- Debug Tools: Metrics: Fixed "Drawlists" section and per-viewport equivalent
appearing empty (regression in 1.89.8).
- Demo: Demonstrate out-of-order rendering using ImDrawListSplitter.


Expand Down
5 changes: 1 addition & 4 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 226923f

Please sign in to comment.