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

Steve Lhomme git at videolan.org
Wed Dec 12 17:40:37 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Apr 18 14:19:56 2018 +0200| [6aa5eb7a67052ad01d12e4f656c4bdf56bc23d5d] | committer: Hugo Beauzée-Luyssen

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

(cherry picked from commit ecedb2e7af79c92b2564c1a31142c89c05350067)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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 36bc09892c..48326ff9d4 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -212,6 +212,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