TestEngine: Added hook to notify test engine of a removed imgui context.

This commit is contained in:
omar
2020-06-29 20:10:59 +02:00
parent 9418dcb693
commit dca7c3c629
3 changed files with 7 additions and 2 deletions

View File

@ -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]);