From c2b3d039bee8ec88ddc7c55a034c9d2d70b173f2 Mon Sep 17 00:00:00 2001 From: Josh Junon Date: Wed, 18 Sep 2019 06:04:02 +0200 Subject: [PATCH] ImDrawList: only define GetForegroundDrawList in debug mode --- imgui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imgui.cpp b/imgui.cpp index d717fb17d1f2..2fb911777f44 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3344,11 +3344,13 @@ ImDrawList* ImGui::GetBackgroundDrawList() return &GImGui->BackgroundDrawList; } +#if IMGUI_DEBUG_NAV_RECTS static ImDrawList* GetForegroundDrawList(ImGuiWindow*) { // This seemingly unnecessary wrapper simplifies compatibility between the 'master' and 'docking' branches. return &GImGui->ForegroundDrawList; } +#endif ImDrawList* ImGui::GetForegroundDrawList() {