Commit 15a7ba96 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf
Browse files

direct3d11: add a debug message when the device is created


Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 6759593d
......@@ -941,7 +941,12 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
hr = D3D11CreateDevice(NULL, driverAttempts[driver], NULL, creationFlags,
NULL, 0, D3D11_SDK_VERSION,
&sys->d3ddevice, NULL, &sys->d3dcontext);
if (SUCCEEDED(hr)) break;
if (SUCCEEDED(hr)) {
#ifndef NDEBUG
msg_Dbg(vd, "Created the D3D11 device 0x%p ctx 0x%p type %d.", sys->d3ddevice, sys->d3dcontext, driverAttempts[driver]);
#endif
break;
}
}
if (FAILED(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