vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jul 31 15:18:16 2018 +0200| [0d6753dc907403e96db82e3d702a4633832be697] | committer: Steve Lhomme
direct3d11: don't use D3D11 automatically on OSes older than Win8.1 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0d6753dc907403e96db82e3d702a4633832be697 --- modules/video_output/win32/direct3d11.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c index a9a55d4d9f..40e81088b0 100644 --- a/modules/video_output/win32/direct3d11.c +++ b/modules/video_output/win32/direct3d11.c @@ -31,6 +31,7 @@ #include <assert.h> #include <math.h> +#include <versionhelpers.h> #if !defined(_WIN32_WINNT) || _WIN32_WINNT < _WIN32_WINNT_WIN7 # undef _WIN32_WINNT @@ -247,6 +248,10 @@ static int Open(vlc_object_t *object) { vout_display_t *vd = (vout_display_t *)object; + /* Allow using D3D11 automatically starting from Windows 8.1 */ + if (!vd->obj.force && !IsWindows8Point1OrGreater()) + return VLC_EGENERIC; + #if !VLC_WINSTORE_APP int ret = OpenHwnd(vd); #else _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
