Skip to content

Commit

Permalink
Viewports, Backends: DX12: Make secondary viewport format match main …
Browse files Browse the repository at this point in the history
…viewport one (#3462) {@BeastLe9enD]
  • Loading branch information
ocornut committed Sep 16, 2020
1 parent 770c995 commit e230ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/imgui_impl_dx12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e230ec5

Please sign in to comment.