d3d11: add support for new debug layer versions

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1237>
This commit is contained in:
Andoni Morales Alastruey 2021-10-23 19:26:06 +02:00
parent 2853c085c7
commit 6844a243c8

View file

@ -169,6 +169,12 @@ gst_d3d11_device_enable_d3d11_debug (void)
if (!d3d11_debug_module) if (!d3d11_debug_module)
d3d11_debug_module = d3d11_debug_module =
g_module_open ("d3d11_1sdklayers.dll", G_MODULE_BIND_LAZY); 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); g_once_init_leave (&_init, 1);
} }