[vlc-devel] [PATCH] direct3d11: D3D11_CREATE_DEVICE_DEBUG requires VisualStudio or Windows SDK

Steve Lhomme robUx4 at videolabs.io
Mon Mar 23 17:30:40 CET 2015


--
replaces the previous patch
---
 modules/video_output/msw/direct3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 042f317..2a26983 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -449,7 +449,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
 
-- 
2.3.2




More information about the vlc-devel mailing list