[vlc-commits] direct3d11: get the feature level from the external D3D11 device on winstore builds

Steve Lhomme git at videolan.org
Wed Apr 18 14:42:38 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Apr 18 14:19:56 2018 +0200| [ecedb2e7af79c92b2564c1a31142c89c05350067] | committer: Steve Lhomme

direct3d11: get the feature level from the external D3D11 device on winstore builds

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ecedb2e7af79c92b2564c1a31142c89c05350067
---

 modules/video_output/win32/direct3d11.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index d59cdd91ea..aa4c4ec7ff 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -471,6 +471,7 @@ static int OpenCoreW(vout_display_t *vd)
     sys->dxgiswapChain = dxgiswapChain;
     sys->d3d_dev.d3ddevice     = d3ddevice;
     sys->d3d_dev.d3dcontext    = d3dcontext;
+    sys->d3d_dev.feature_level = ID3D11Device_GetFeatureLevel(sys->d3d_dev.d3ddevice );
     IDXGISwapChain_AddRef     (sys->dxgiswapChain);
     ID3D11Device_AddRef       (sys->d3d_dev.d3ddevice);
     ID3D11DeviceContext_AddRef(sys->d3d_dev.d3dcontext);



More information about the vlc-commits mailing list