1
0
Fork 0
mirror of https://github.com/gwm17/Specter.git synced 2025-02-19 19:08:51 -05:00

Fixed misunderstanding of ImGui::Begin()/End() paradigm. Must always call End() regardless of state of Begin()

This commit is contained in:
Gordon McCann 2022-06-07 10:40:49 -04:00
parent afd17b780d
commit 29433be65a
4 changed files with 8 additions and 8 deletions

View File

@ -68,8 +68,8 @@ namespace Navigator {
ImGui::Text(m_rxnEqn.c_str()); ImGui::Text(m_rxnEqn.c_str());
ImGui::Text("X1 Weight: %f", x1_weight.GetValue()); ImGui::Text("X1 Weight: %f", x1_weight.GetValue());
ImGui::Text("X2 Weight: %f", x2_weight.GetValue()); ImGui::Text("X2 Weight: %f", x2_weight.GetValue());
ImGui::End();
} }
ImGui::End();
} }
void SPSInputLayer::UpdateWeights() void SPSInputLayer::UpdateWeights()

View File

@ -252,8 +252,8 @@ namespace Navigator {
ImGui::TreePop(); ImGui::TreePop();
} }
} }
ImGui::End();
} }
ImGui::End();
if(ImGui::Begin(ICON_FA_CUT " Cuts")) if(ImGui::Begin(ICON_FA_CUT " Cuts"))
{ {
@ -267,8 +267,8 @@ namespace Navigator {
ImGui::TreePop(); ImGui::TreePop();
} }
} }
ImGui::End();
} }
ImGui::End();
ImGui::End(); ImGui::End();
} }

View File

@ -163,8 +163,8 @@ namespace Navigator {
} }
} }
} }
ImGui::End();
} }
ImGui::End();
return m_result; return m_result;
} }

View File

@ -109,13 +109,13 @@ namespace Navigator {
} }
private: private:
Instrumentor::Instrumentor() : Instrumentor() :
m_session(nullptr) m_session(nullptr)
{ {
} }
Instrumentor::~Instrumentor() ~Instrumentor()
{ {
EndSession(); EndSession();
} }