[vlc-commits] d3d11_fmt: log the diver version even when the feature level is wrong
Steve Lhomme
git at videolan.org
Tue Feb 6 11:12:07 CET 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb 5 16:49:52 2018 +0100| [5ca1c04bb5a35dd73a321fcfca7bdb639327012b] | committer: Steve Lhomme
d3d11_fmt: log the diver version even when the feature level is wrong
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5ca1c04bb5a35dd73a321fcfca7bdb639327012b
---
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