[vlc-commits] dxgi_swapchain: don't reset values from FillSwapChainDesc

Steve Lhomme git at videolan.org
Wed Feb 10 11:06:55 UTC 2021


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jan 25 15:28:19 2021 +0100| [a2cc3037530ed3990e374715306d6a2ec87b950b] | committer: Steve Lhomme

dxgi_swapchain: don't reset values from FillSwapChainDesc

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a2cc3037530ed3990e374715306d6a2ec87b950b
---

 modules/video_output/win32/dxgi_swapchain.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/modules/video_output/win32/dxgi_swapchain.c b/modules/video_output/win32/dxgi_swapchain.c
index 334e6503ae..48300044ad 100644
--- a/modules/video_output/win32/dxgi_swapchain.c
+++ b/modules/video_output/win32/dxgi_swapchain.c
@@ -338,14 +338,6 @@ static void DXGI_CreateSwapchainDComp(struct dxgi_swapchain *display,
 
     DXGI_SWAP_CHAIN_DESC1 scd;
     FillSwapChainDesc(display, width, height, &scd);
-    ZeroMemory(&scd, sizeof(scd));
-    scd.BufferCount = 3;
-    scd.BufferUsage = DXGI_USAGE_RENDER_TARGET_OUTPUT;
-    scd.SampleDesc.Count = 1;
-    scd.SampleDesc.Quality = 0;
-    scd.Width = width;
-    scd.Height = height;
-    scd.Format = display->pixelFormat->formatTexture;
     scd.Scaling = DXGI_SCALING_STRETCH;
     scd.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL;
     scd.AlphaMode = DXGI_ALPHA_MODE_IGNORE;



More information about the vlc-commits mailing list