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:
parent
7f38773b73
commit
ea83d040e6
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user