From 9061e464a8244802fa5143b8ded4a4cf78b5ec40 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 16 Mar 2024 21:25:38 +0900 Subject: [PATCH] d3d12: Fix SDK debug layer activation Debug layer must be enabled before creating device. Otherwise already opened devices before the activation will be removed Part-of: --- subprojects/gst-plugins-bad/sys/d3d12/gstd3d12device.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12device.cpp b/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12device.cpp index fe859ab731..8d0ec0086c 100644 --- a/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12device.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12device.cpp @@ -725,6 +725,8 @@ gst_d3d12_device_new_internal (const GstD3D12DeviceConstructData * data) GST_DEBUG_CATEGORY_INIT (gst_d3d12_device_debug, "d3d12device", 0, "d3d12 device object"); + gst_d3d12_device_enable_debug (); + hr = CreateDXGIFactory2 (factory_flags, IID_PPV_ARGS (&factory)); if (FAILED (hr)) { GST_WARNING ("Could create dxgi factory, hr: 0x%x", (guint) hr);