[vlc-devel] [PATCH 4/4] d3d11: allow calling IsDebuggerPresent() in winstore builds
Jean-Baptiste Kempf
jb at videolan.org
Mon Apr 27 17:29:13 CEST 2020
OK.
On Mon, Apr 27, 2020, at 16:22, Steve Lhomme wrote:
> 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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
--
Jean-Baptiste Kempf - President
+33 672 704 734
More information about the vlc-devel
mailing list