]> git.sesse.net Git - vlc/blobdiff - modules/video_output/msw/direct3d11.c
direct3d11: D3D11_CREATE_DEVICE_DEBUG requires VisualStudio or Windows SDK
[vlc] / modules / video_output / msw / direct3d11.c
index b673e057c1fc3ba2a9e769dc7ab6d1cfb5a2aa18..5c147a41cd5a410663453b0132b8188414eb5e9a 100644 (file)
@@ -450,7 +450,7 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
         D3D_FEATURE_LEVEL_9_1
     };
 
-# ifndef NDEBUG
+# if !defined(NDEBUG) && defined(_MSC_VER)
     creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
 # endif