Commit 5ca1c04b authored by Steve Lhomme's avatar Steve Lhomme

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

parent 3c7c2718
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment