mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-20 01:34:20 +00:00
TestEngine: Added hook to notify test engine of a removed imgui context.
This commit is contained in:
parent
9418dcb693
commit
dca7c3c629
3 changed files with 7 additions and 2 deletions
|
|
@ -3916,6 +3916,11 @@ void ImGui::Shutdown(ImGuiContext* context)
|
|||
SetCurrentContext(backup_context);
|
||||
}
|
||||
|
||||
// Notify hooked test engine, if any
|
||||
#ifdef IMGUI_ENABLE_TEST_ENGINE
|
||||
ImGuiTestEngineHook_Shutdown(context);
|
||||
#endif
|
||||
|
||||
// Clear everything else
|
||||
for (int i = 0; i < g.Windows.Size; i++)
|
||||
IM_DELETE(g.Windows[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue