1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-17 04:17:17 +01:00

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 = &DrawListInst;
DrawList->_Data = &context->DrawListSharedData; DrawList->_Data = &context->DrawListSharedData;
DrawList->_OwnerName = Name; DrawList->_OwnerName = Name;
IM_PLACEMENT_NEW(&WindowClass) ImGuiWindowClass();
} }
ImGuiWindow::~ImGuiWindow() ImGuiWindow::~ImGuiWindow()