d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable
[ffmpeg.git] / configure
index aebd5d5..bf48472 100755 (executable)
--- a/configure
+++ b/configure
@@ -6120,6 +6120,10 @@ fi
 
 check_func_headers "windows.h" CreateDIBSection "$gdigrab_indev_extralibs"
 
+# d3d11va requires linking directly to dxgi and d3d11 if not building for
+# the desktop api partition
+enabled LoadLibrary || d3d11va_extralibs="-ldxgi -ld3d11"
+
 enabled vaapi &&
     check_lib vaapi va/va.h vaInitialize -lva