Skip to content

Commit

Permalink
Viewports: fix missing default per-window value for ParentViewportId …
Browse files Browse the repository at this point in the history
…due to zero-cleared in-window instance (#4756)

Broken by 2080d12
  • Loading branch information
ocornut committed Nov 24, 2021
1 parent 7f38773 commit ea83d04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3092,6 +3092,7 @@ ImGuiWindow::ImGuiWindow(ImGuiContext* context, const char* name) : DrawListInst
DrawList = &DrawListInst;
DrawList->_Data = &context->DrawListSharedData;
DrawList->_OwnerName = Name;
IM_PLACEMENT_NEW(&WindowClass) ImGuiWindowClass();
}

ImGuiWindow::~ImGuiWindow()
Expand Down

0 comments on commit ea83d04

Please sign in to comment.