From 3ff195f70216cd61c19877e0079bfe3c04491e18 Mon Sep 17 00:00:00 2001 From: ocornut Date: Mon, 29 Sep 2025 16:00:17 +0200 Subject: [PATCH] Backends: DX12: let bd->FrameIndex start at 0 to match docking. (#8961) --- backends/imgui_impl_dx12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_dx12.cpp b/backends/imgui_impl_dx12.cpp index 4a29cf529..fa58f3e5d 100644 --- a/backends/imgui_impl_dx12.cpp +++ b/backends/imgui_impl_dx12.cpp @@ -106,7 +106,7 @@ struct ImGui_ImplDX12_Data bool LegacySingleDescriptorUsed; - ImGui_ImplDX12_Data() { memset((void*)this, 0, sizeof(*this)); frameIndex = UINT_MAX; } + ImGui_ImplDX12_Data() { memset((void*)this, 0, sizeof(*this)); } }; // Backend data stored in io.BackendRendererUserData to allow support for multiple Dear ImGui contexts