[vlc-commits] Win32: make D3D11 the default on Windows 8.1/10
Jean-Baptiste Kempf
git at videolan.org
Thu Aug 10 13:52:34 CEST 2017
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Aug 10 13:45:46 2017 +0200| [018f3768422be26e1c91f1ad77a3f6c59a3e83b8] | committer: Jean-Baptiste Kempf
Win32: make D3D11 the default on Windows 8.1/10
That should avoid buggy drivers not-really-tested on 7/8.0
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=018f3768422be26e1c91f1ad77a3f6c59a3e83b8
---
modules/video_output/win32/direct3d11.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index e6eb867ddf..958db949cc 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -80,7 +80,7 @@ vlc_module_begin ()
add_integer("winrt-swapchain", 0x0, NULL, NULL, true); /* IDXGISwapChain1* */
#endif
- set_capability("vout display", 240)
+ set_capability("vout display", 300)
add_shortcut("direct3d11")
set_callbacks(Open, Close)
vlc_module_end ()
@@ -513,6 +513,9 @@ static int Open(vlc_object_t *object)
{
vout_display_t *vd = (vout_display_t *)object;
+ if( !IsWindows8Point1OrGreater() && !vd->obj.force )
+ return VLC_EGENERIC;
+
#if !VLC_WINSTORE_APP
int ret = OpenHwnd(vd);
#else
More information about the vlc-commits
mailing list