mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 15:11:05 +01:00 
			
		
		
		
	Viewports: Add various comments
This commit is contained in:
		@@ -3326,7 +3326,7 @@ static ImDrawList* GetViewportDrawList(ImGuiViewportP* viewport, size_t drawlist
 | 
			
		||||
{
 | 
			
		||||
    // Create the draw list on demand, because they are not frequently used for all viewports
 | 
			
		||||
    ImGuiContext& g = *GImGui;
 | 
			
		||||
    IM_ASSERT(drawlist_no >= 0 && drawlist_no < IM_ARRAYSIZE(viewport->DrawLists));
 | 
			
		||||
    IM_ASSERT(drawlist_no < IM_ARRAYSIZE(viewport->DrawLists));
 | 
			
		||||
    ImDrawList* draw_list = viewport->DrawLists[drawlist_no];
 | 
			
		||||
    if (draw_list == NULL)
 | 
			
		||||
    {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user