[vlc-commits] d3d11_fmt: always initialize DXGI debug fields

Steve Lhomme git at videolan.org
Mon Feb 3 09:35:59 CET 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb  3 08:29:03 2020 +0100| [94ab4cda9e8fa129f85c52eb38cea699018b51d7] | committer: Steve Lhomme

d3d11_fmt: always initialize DXGI debug fields

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

 modules/video_chroma/d3d11_fmt.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 7c6a1ede1e..db81a312a8 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -722,6 +722,8 @@ int D3D11_Create(vlc_object_t *obj, d3d11_handle_t *hd3d, bool with_shaders)
         }
     }
 # if !defined(NDEBUG) && defined(HAVE_DXGIDEBUG_H)
+    hd3d->dxgidebug_dll = NULL;
+    hd3d->pf_DXGIGetDebugInterface = NULL;
     if (IsDebuggerPresent())
     {
         hd3d->dxgidebug_dll = LoadLibrary(TEXT("DXGIDEBUG.DLL"));



More information about the vlc-commits mailing list