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() {