Viewports: fix missing default per-window value for ParentViewportId due to zero-cleared in-window instance (#4756)

Broken by 2080d12b
This commit is contained in:
ocornut 2021-11-24 16:46:40 +01:00
parent 7f38773b73
commit ea83d040e6

View File

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