mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6382>
This commit is contained in:
parent
2ec7f9f9b3
commit
8acf844fed
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue