vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Tue Feb 13 18:04:23 
2018 +0100| [8529cee3658f5f6fb5cb74a499e7410a14d1400e] | committer: Steve Lhomme

d3d11_fmt: assume drivers are bad on Winstore builds

Since we have no wait to get the version we fallback to the worst case.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8529cee3658f5f6fb5cb74a499e7410a14d1400e
---

 modules/video_chroma/d3d11_fmt.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/video_chroma/d3d11_fmt.c b/modules/video_chroma/d3d11_fmt.c
index 09e22ab63c..210beaf3d3 100644
--- a/modules/video_chroma/d3d11_fmt.c
+++ b/modules/video_chroma/d3d11_fmt.c
@@ -361,12 +361,12 @@ int D3D11CheckDriverVersion(d3d11_device_t *d3d_dev, UINT 
vendorId, const struct
     if (FAILED(hr))
         return VLC_EGENERIC;
 
-#if VLC_WINSTORE_APP
-    return VLC_SUCCESS;
-#else
     if (vendorId && adapterDesc.VendorId != vendorId)
         return VLC_SUCCESS;
 
+#if VLC_WINSTORE_APP
+    return VLC_EGENERIC;
+#else
     bool newer =
            d3d_dev->WDDM.wddm > min_ver->wddm ||
           (d3d_dev->WDDM.wddm == min_ver->wddm && (d3d_dev->WDDM.d3d_features 
> min_ver->d3d_features ||

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to