From e230ec5a01d7c8da5a61ba0a19bbb8a0441c717b Mon Sep 17 00:00:00 2001 From: omar Date: Wed, 16 Sep 2020 11:05:02 +0200 Subject: [PATCH] Viewports, Backends: DX12: Make secondary viewport format match main viewport one (#3462) {@BeastLe9enD] --- examples/imgui_impl_dx12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/imgui_impl_dx12.cpp b/examples/imgui_impl_dx12.cpp index 690f3a8b..fcda0d5f 100644 --- a/examples/imgui_impl_dx12.cpp +++ b/examples/imgui_impl_dx12.cpp @@ -806,7 +806,7 @@ static void ImGui_ImplDX12_CreateWindow(ImGuiViewport* viewport) sd1.BufferCount = g_numFramesInFlight; sd1.Width = (UINT)viewport->Size.x; sd1.Height = (UINT)viewport->Size.y; - sd1.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + sd1.Format = g_RTVFormat; sd1.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT; sd1.SampleDesc.Count = 1; sd1.SampleDesc.Quality = 0;