d3d11: add support for new debug layer versions
authorAndoni Morales Alastruey <amorales@fluendo.com>
Sat, 23 Oct 2021 17:26:06 +0000 (19:26 +0200)
committerAndoni Morales Alastruey <amorales@fluendo.com>
Sat, 23 Oct 2021 19:46:04 +0000 (21:46 +0200)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1237>

subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11device.cpp

index 712e829..d3b65bd 100644 (file)
@@ -169,6 +169,12 @@ gst_d3d11_device_enable_d3d11_debug (void)
     if (!d3d11_debug_module)
       d3d11_debug_module =
           g_module_open ("d3d11_1sdklayers.dll", G_MODULE_BIND_LAZY);
+    if (!d3d11_debug_module)
+      d3d11_debug_module =
+          g_module_open ("d3d11_2sdklayers.dll", G_MODULE_BIND_LAZY);
+    if (!d3d11_debug_module)
+      d3d11_debug_module =
+          g_module_open ("d3d11_3sdklayers.dll", G_MODULE_BIND_LAZY);
 
     g_once_init_leave (&_init, 1);
   }