[vlc-commits] d3d11: allow calling IsDebuggerPresent() in winstore builds

Steve Lhomme git at videolan.org
Thu Apr 30 12:09:46 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Apr 27 16:03:23 2020 +0200| [df432fb79ab2dcb8d4e9fa68eafa7d529f52dd7e] | committer: Steve Lhomme

d3d11: allow calling IsDebuggerPresent() in winstore builds

It's allowed in win10. And we only call it in debug builds anyway.

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

 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 44ba5f7b74..90e6208044 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) {



More information about the vlc-commits mailing list