mirror of
https://github.com/ocornut/imgui.git
synced 2025-12-27 16:49:18 +00:00
Misc: added assert to detect ~ImGuiContext() called without DestroyContext(). (#9051)
This commit is contained in:
@@ -4277,6 +4277,11 @@ ImGuiContext::ImGuiContext(ImFontAtlas* shared_font_atlas)
|
||||
memset(TempKeychordName, 0, sizeof(TempKeychordName));
|
||||
}
|
||||
|
||||
ImGuiContext::~ImGuiContext()
|
||||
{
|
||||
IM_ASSERT(Initialized == false && "Forgot to call DestroyContext()?");
|
||||
}
|
||||
|
||||
void ImGui::Initialize()
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
|
||||
Reference in New Issue
Block a user