[vlc-devel] [PATCH 4/4] d3d11: allow calling IsDebuggerPresent() in winstore builds

Steve Lhomme robux4 at ycbcr.xyz
Mon Apr 27 16:22:19 CEST 2020


It's allowed in win10. And we only call it in debug builds anyway.
---
 modules/video_chroma/d3d11_fmt.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 44ba5f7b745..90e62080446 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -389,9 +389,7 @@ static HRESULT CreateDevice(vlc_object_t *obj, d3d11_handle_t *hd3d,
         creationFlags |= D3D11_CREATE_DEVICE_VIDEO_SUPPORT;
 
 #if !defined(NDEBUG)
-# if !VLC_WINSTORE_APP
     if (IsDebuggerPresent())
-# endif /* VLC_WINSTORE_APP */
     {
         HINSTANCE sdklayer_dll = LoadLibrary(TEXT("d3d11_1sdklayers.dll"));
         if (sdklayer_dll) {
-- 
2.17.1



More information about the vlc-devel mailing list