From 2525785d059209ceebe296228af4a76d9d20f81d Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Kempf <jb@videolan.org>
Date: Wed, 28 Mar 2012 14:29:49 +0200
Subject: [PATCH] Direct3D: add more debug when CreateTexture fail

---
 modules/video_output/msw/direct3d.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 9f40065b570e..fe0cc8d36a2d 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -1255,8 +1255,8 @@ static void Direct3DImportSubpicture(vout_display_t *vd,
                                                 NULL);
             if (FAILED(hr)) {
                 d3dr->texture = NULL;
-                msg_Err(vd, "Failed to create %dx%d texture for OSD",
-                        d3dr->width, d3dr->height);
+                msg_Err(vd, "Failed to create %dx%d texture for OSD (hr=0x%0lX)",
+                        d3dr->width, d3dr->height, hr);
                 continue;
             }
             msg_Dbg(vd, "Created %dx%d texture for OSD",
-- 
GitLab