mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-11-04 07:01:04 +01:00 
			
		
		
		
	Commenting asserts.
This commit is contained in:
		@@ -2848,7 +2848,7 @@ void ImGui::PushStyleVar(ImGuiStyleVar idx, float val)
 | 
			
		||||
    ImGuiState& g = GImGui;
 | 
			
		||||
 | 
			
		||||
    float* pvar = GetStyleVarFloatAddr(idx);
 | 
			
		||||
    IM_ASSERT(pvar != NULL); // Called wrong function?
 | 
			
		||||
    IM_ASSERT(pvar != NULL); // Called function with wrong-type? Variable is not a float.
 | 
			
		||||
    ImGuiStyleMod backup;
 | 
			
		||||
    backup.Var = idx;
 | 
			
		||||
    backup.PreviousValue = ImVec2(*pvar, 0.0f);
 | 
			
		||||
@@ -2862,7 +2862,7 @@ void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val)
 | 
			
		||||
    ImGuiState& g = GImGui;
 | 
			
		||||
 | 
			
		||||
    ImVec2* pvar = GetStyleVarVec2Addr(idx);
 | 
			
		||||
    IM_ASSERT(pvar != NULL); // Called wrong function?
 | 
			
		||||
    IM_ASSERT(pvar != NULL); // Called function with wrong-type? Varialble is not a ImVec2.
 | 
			
		||||
    ImGuiStyleMod backup;
 | 
			
		||||
    backup.Var = idx;
 | 
			
		||||
    backup.PreviousValue = *pvar;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user