Skip to content

Commit

Permalink
ImDrawList: only define GetForegroundDrawList in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Sep 18, 2019
1 parent 098591f commit c2b3d03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit c2b3d03

Please sign in to comment.