vlc | branch: master | Steve Lhomme <rob...@gmail.com> | Tue Jun  2 16:16:03 
2015 +0200| [15a7ba96eae7f28b8b10793fe885da433e8ae82e] | committer: 
Jean-Baptiste Kempf

direct3d11: add a debug message when the device is created

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15a7ba96eae7f28b8b10793fe885da433e8ae82e
---

 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 7b6fb57..7b2ed90 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -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)) {

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to