From c2ed8759c8aa92572cffbe707fcd8b63268dad91 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Thu, 12 Oct 2023 02:47:28 +0900 Subject: [PATCH] d3d11videosink: Don't use DXGI_ALPHA_MODE_PREMULTIPLIED for HWND swapchain It's allowed only for a swapchain type which does composition Part-of: --- subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp index c0e8375daa..70f3a9ac00 100644 --- a/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d11/gstd3d11window_win32.cpp @@ -1098,7 +1098,7 @@ gst_d3d11_window_win32_create_swap_chain (GstD3D11Window * window, if (gst_d3d11_is_windows_8_or_greater ()) desc1.Scaling = DXGI_SCALING_NONE; desc1.SwapEffect = DXGI_SWAP_EFFECT_FLIP_SEQUENTIAL; - desc1.AlphaMode = DXGI_ALPHA_MODE_PREMULTIPLIED; + desc1.AlphaMode = DXGI_ALPHA_MODE_UNSPECIFIED; desc1.Flags = swapchain_flags; new_swapchain = create_swap_chain_for_hwnd (self, device,