[vlc-commits] d3d11_fmt: always show the driver found

Steve Lhomme git at videolan.org
Tue Jun 5 11:31:25 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jun  4 17:15:40 2018 +0200| [7199e7bbb509c1e98a21436d1df8830d5a673a2b] | committer: Jean-Baptiste Kempf

d3d11_fmt: always show the driver found

Even in release builds to fix debugging issues

(cherry picked from commit 6cca704dc7446485010efa0e3a2f6dd42b4a2227)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7199e7bbb509c1e98a21436d1df8830d5a673a2b
---

 modules/video_chroma/d3d11_fmt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 9247ac0628..18d9345f00 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -273,12 +273,9 @@ HRESULT D3D11_CreateDevice(vlc_object_t *obj, d3d11_handle_t *hd3d,
                     D3D11_features, ARRAY_SIZE(D3D11_features), D3D11_SDK_VERSION,
                     &out->d3ddevice, &out->feature_level, &out->d3dcontext);
         if (SUCCEEDED(hr)) {
-#ifndef NDEBUG
-            msg_Dbg(obj, "Created the D3D11 device 0x%p ctx 0x%p type %d level %x.",
-                    (void *)out->d3ddevice, (void *)out->d3dcontext,
+            msg_Dbg(obj, "Created the D3D11 device type %d level %x.",
                     driverAttempts[driver], out->feature_level);
             D3D11_GetDriverVersion( obj, out );
-#endif
             /* we can work with legacy levels but only if forced */
             if ( obj->obj.force || out->feature_level >= D3D_FEATURE_LEVEL_11_0 )
                 break;



More information about the vlc-commits mailing list