From 3125a4a8a8fc7dde938bff6a668f53b26bf47860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 9 Jun 2017 12:05:00 +0300 Subject: d3d11va: Link directly to dxgi.dll and d3d11.dll functions if LoadLibrary is unavailable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When targeting the UWP API subset, the LoadLibrary function is not available (and the fallback, LoadPackagedLibrary, can't be used to load system DLLs). In these cases, link directly to the functions in the DLLs instead of trying to load them dynamically at runtime. Merges Libav commit fd1ffa1f10e940165035ccb79d4a6523da196062. Signed-off-by: Martin Storsjö --- configure | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure') diff --git a/configure b/configure index aebd5d5da5..bf48472219 100755 --- 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 -- cgit v1.2.3