vlc | branch: master | Steve Lhomme <rob...@ycbcr.xyz> | Tue Mar 13 14:28:35 
2018 +0100| [d7fb96260cef97ebc5e2a6027d2917469180cbfe] | committer: Steve Lhomme

direct3d11: use the shader with no array either with 9.x compatibility or bogus 
AMD

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

 modules/video_output/win32/direct3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c 
b/modules/video_output/win32/direct3d11.c
index d946983829..bdb4612f8a 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2046,7 +2046,7 @@ static int Direct3D11CreateFormatResources(vout_display_t 
*vd, const video_forma
     vout_display_sys_t *sys = vd->sys;
     HRESULT hr;
 
-    sys->legacy_shader = !CanUseTextureArray(vd);
+    sys->legacy_shader = sys->d3d_dev.feature_level < D3D_FEATURE_LEVEL_10_0 
|| !CanUseTextureArray(vd);
 
     hr = CompilePixelShader(vd, sys->picQuadConfig, fmt->transfer, 
fmt->b_color_range_full, &sys->picQuadPixelShader);
     if (FAILED(hr))

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

Reply via email to