mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Removed unnecessary assert (will crash well enough without) + comment
This commit is contained in:
		@@ -1222,8 +1222,8 @@ public:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static inline ImGuiWindow* GetCurrentWindow()
 | 
					static inline ImGuiWindow* GetCurrentWindow()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
					    // If this ever crash it probably means that ImGui::NewFrame() hasn't been called. We should always have a CurrentWindow in the stack (there is an implicit "Debug" window)
 | 
				
			||||||
    ImGuiState& g = *GImGui;
 | 
					    ImGuiState& g = *GImGui;
 | 
				
			||||||
    IM_ASSERT(g.CurrentWindow != NULL);    // ImGui::NewFrame() hasn't been called yet?
 | 
					 | 
				
			||||||
    g.CurrentWindow->Accessed = true;
 | 
					    g.CurrentWindow->Accessed = true;
 | 
				
			||||||
    return g.CurrentWindow;
 | 
					    return g.CurrentWindow;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user