mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-31 13:11:05 +01: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:
		| @@ -48,6 +48,8 @@ Other changes: | |||||||
|   v_max=INT_MAX (#6675, #6679) [@jbarthelmes] |   v_max=INT_MAX (#6675, #6679) [@jbarthelmes] | ||||||
| - ImDrawList: Fixed OOB access in _CalcCircleAutoSegmentCount when passing excessively | - ImDrawList: Fixed OOB access in _CalcCircleAutoSegmentCount when passing excessively | ||||||
|   large radius to AddCircle(). (#6657, #5317) [@EggsyCRO, @jdpatdiscord] |   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. | - Demo: Demonstrate out-of-order rendering using ImDrawListSplitter. | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -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. |     // 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++) |     for (int n = 0; n < g.Viewports.Size; n++) | ||||||
|     { |         g.Viewports[n]->DrawDataP.Valid = false; | ||||||
|         ImGuiViewportP* viewport = g.Viewports[n]; |  | ||||||
|         viewport->DrawDataP.Clear(); |  | ||||||
|     } |  | ||||||
|  |  | ||||||
|     // Drag and drop keep the source ID alive so even if the source disappear our state is consistent |     // 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) |     if (g.DragDropActive && g.DragDropPayload.SourceId == g.ActiveId) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user