[vlc-commits] direct3d11: use the shader with no array either with 9.x compatibility or bogus AMD

Steve Lhomme git at videolan.org
Tue Mar 13 15:26:43 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at 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))



More information about the vlc-commits mailing list