vlc/vlc-3.0 | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Tue Feb 13 
18:04:23 2018 +0100| [34ed87d945ad899cb9f3c74bb98d8d94626344f2] | committer: 
Hugo Beauzée-Luyssen

d3d11_fmt: assume drivers are bad on Winstore builds

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

(cherry picked from commit 8529cee3658f5f6fb5cb74a499e7410a14d1400e)
Signed-off-by: Hugo Beauzée-Luyssen <h...@beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=34ed87d945ad899cb9f3c74bb98d8d94626344f2
---

 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