[vlc-devel] [PATCH 3/3] direct3d11: add a debug message when the device is created
Steve Lhomme
robux4 at gmail.com
Tue Jun 2 16:16:03 CEST 2015
---
modules/video_output/msw/direct3d11.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 5621d21..ed222de 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -928,7 +928,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)) {
--
2.4.0
More information about the vlc-devel
mailing list