[vlc-devel] [PATCH 1/3] direct3d11: the reference driver is not intended for release builds

Steve Lhomme robux4 at videolabs.io
Thu Mar 3 11:22:04 CET 2016


see https://msdn.microsoft.com/en-us/library/windows/desktop/ff476328%28v=vs.85%29.aspx#D3D_DRIVER_TYPE_REFERENCE
---
 modules/video_output/msw/direct3d11.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_output/msw/direct3d11.c b/modules/video_output/msw/direct3d11.c
index 1cac7fd..2bcc6a6 100644
--- a/modules/video_output/msw/direct3d11.c
+++ b/modules/video_output/msw/direct3d11.c
@@ -947,7 +947,9 @@ static int Direct3D11Open(vout_display_t *vd, video_format_t *fmt)
     static const D3D_DRIVER_TYPE driverAttempts[] = {
         D3D_DRIVER_TYPE_HARDWARE,
         D3D_DRIVER_TYPE_WARP,
+#ifndef NDEBUG
         D3D_DRIVER_TYPE_REFERENCE,
+#endif
     };
 
     for (UINT driver = 0; driver < ARRAYSIZE(driverAttempts); driver++) {
-- 
2.7.2.windows.1



More information about the vlc-devel mailing list