diff --git a/backends/imgui_impl_metal.mm b/backends/imgui_impl_metal.mm index a5bfd5f4288f..8cbbd5863c0d 100644 --- a/backends/imgui_impl_metal.mm +++ b/backends/imgui_impl_metal.mm @@ -415,7 +415,7 @@ static void ImGui_ImplMetal_CreateWindow(ImGuiViewport* viewport) void* handle = viewport->PlatformHandleRaw ? viewport->PlatformHandleRaw : viewport->PlatformHandle; IM_ASSERT(handle != nullptr); - id device = [bd->SharedMetalContext.depthStencilState device]; + id device = bd->SharedMetalContext.device; CAMetalLayer* layer = [CAMetalLayer layer]; layer.device = device; layer.framebufferOnly = YES; diff --git a/docs/CHANGELOG.txt b/docs/CHANGELOG.txt index 7b25d4e134e3..b6ad8677f483 100644 --- a/docs/CHANGELOG.txt +++ b/docs/CHANGELOG.txt @@ -150,6 +150,7 @@ Docking+Viewports Branch: remapping list are docked on the left or top side of a split. (#6035) - Backends: OSX: fixed typo in ImGui_ImplOSX_GetWindowSize that would cause issues when resiing from OS decorations, if they are enabled on secondary viewports. (#6009) [@sivu] +- Backends: Metal: fixed secondary viewport rendering. (#6015) [@dmirty-kuzmenko] -----------------------------------------------------------------------