Browse Source

Backends: DX12: Changed swapchain scaling mode to `DXGI_SCALING_NONE`. (#7152, #7153)

Kai Wang 1 year ago
parent
commit
20e1caec85
2 changed files with 6 additions and 1 deletions
  1. 1 1
      backends/imgui_impl_dx12.cpp
  2. 5 0
      docs/CHANGELOG.txt

+ 1 - 1
backends/imgui_impl_dx12.cpp

@@ -899,7 +899,7 @@ static void ImGui_ImplDX12_CreateWindow(ImGuiViewport* viewport)
     sd1.SampleDesc.Quality = 0;
     sd1.SwapEffect = DXGI_SWAP_EFFECT_FLIP_DISCARD;
     sd1.AlphaMode = DXGI_ALPHA_MODE_UNSPECIFIED;
-    sd1.Scaling = DXGI_SCALING_STRETCH;
+    sd1.Scaling = DXGI_SCALING_NONE;
     sd1.Stereo = FALSE;
 
     IDXGIFactory4* dxgi_factory = nullptr;

+ 5 - 0
docs/CHANGELOG.txt

@@ -93,6 +93,11 @@ Other changes:
 - Examples: GLFW+Emscripten: Fixed examples not consistently resizing according to host canvas.
   (#6751) [@Traveller23, @ypujante]
 
+Docking+Viewports Branch:
+
+- Backends: DX12: Changed swapchain scaling mode to DXGI_SCALING_NONE to reduce artifacts as
+  queued frames aren't synchronized with platform window resizes. (#7152, #7153) [@SuperWangKai]
+
 
 -----------------------------------------------------------------------
  VERSION 1.90.0 (Released 2023-11-15)