[vlc-commits] d3d11_fmt: log the diver version even when the feature level is wrong

Steve Lhomme git at videolan.org
Tue Feb 6 19:30:14 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb  5 16:49:52 2018 +0100| [a2a07e80921d65c1dfe688a4a378d02435961070] | committer: Jean-Baptiste Kempf

d3d11_fmt: log the diver version even when the feature level is wrong

(cherry picked from commit 5ca1c04bb5a35dd73a321fcfca7bdb639327012b)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/video_chroma/d3d11_fmt.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index fe50ac84d7..5a321e395d 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -277,6 +277,7 @@ HRESULT D3D11_CreateDevice(vlc_object_t *obj, d3d11_handle_t *hd3d,
             msg_Dbg(obj, "Created the D3D11 device 0x%p ctx 0x%p type %d level %x.",
                     (void *)out->d3ddevice, (void *)out->d3dcontext,
                     driverAttempts[driver], i_feature_level);
+            D3D11_GetDriverVersion( obj, out );
 #endif
             /* we can work with legacy levels but only if forced */
             if ( obj->obj.force || i_feature_level >= D3D_FEATURE_LEVEL_11_0 )
@@ -291,10 +292,7 @@ HRESULT D3D11_CreateDevice(vlc_object_t *obj, d3d11_handle_t *hd3d,
     }
 
     if (SUCCEEDED(hr))
-    {
         out->owner = true;
-        D3D11_GetDriverVersion(obj, out);
-    }
 
     return hr;
 }



More information about the vlc-commits mailing list