Commit 8febe7d1 authored by Steve Lhomme's avatar Steve Lhomme

direct3d9: log why the D3D9 device cannot be created

Ref #19652
parent 417ed9eb
......@@ -123,9 +123,10 @@ HRESULT D3D9_CreateDevice(vlc_object_t *o, d3d9_handle_t *hd3d, HWND hwnd,
&out->pp, &out->dev);
if (SUCCEEDED(hr))
out->owner = true;
msg_Err(o, "failed to create the D3D9%s device %d/%d flags 0x%x. (hr=0x%lX)",
hd3d->use_ex?"Ex":"", AdapterToUse, DeviceType, creationFlags, hr);
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