mirror of
https://github.com/ocornut/imgui.git
synced 2025-01-18 09:14:47 +01:00
Commenting asserts.
This commit is contained in:
parent
97fcee0d0d
commit
79d1a9d941
@ -2848,7 +2848,7 @@ void ImGui::PushStyleVar(ImGuiStyleVar idx, float val)
|
|||||||
ImGuiState& g = GImGui;
|
ImGuiState& g = GImGui;
|
||||||
|
|
||||||
float* pvar = GetStyleVarFloatAddr(idx);
|
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;
|
ImGuiStyleMod backup;
|
||||||
backup.Var = idx;
|
backup.Var = idx;
|
||||||
backup.PreviousValue = ImVec2(*pvar, 0.0f);
|
backup.PreviousValue = ImVec2(*pvar, 0.0f);
|
||||||
@ -2862,7 +2862,7 @@ void ImGui::PushStyleVar(ImGuiStyleVar idx, const ImVec2& val)
|
|||||||
ImGuiState& g = GImGui;
|
ImGuiState& g = GImGui;
|
||||||
|
|
||||||
ImVec2* pvar = GetStyleVarVec2Addr(idx);
|
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;
|
ImGuiStyleMod backup;
|
||||||
backup.Var = idx;
|
backup.Var = idx;
|
||||||
backup.PreviousValue = *pvar;
|
backup.PreviousValue = *pvar;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user