[vlc-commits] direct3d11: fix AYUV (4:4:4 8 bit) rendering
Steve Lhomme
git at videolan.org
Fri Mar 13 10:28:36 CET 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 13 10:20:07 2020 +0100| [9c73278441495207b9c804d50ce6ca625838e927] | committer: Steve Lhomme
direct3d11: fix AYUV (4:4:4 8 bit) rendering
The decoder doesn't provide a proper alpha value.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9c73278441495207b9c804d50ce6ca625838e927
---
modules/video_output/win32/d3d11_shaders.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c
index 285543e8c3..ad8e39e0a2 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -381,7 +381,7 @@ HRESULT (D3D11_CompilePixelShader)(vlc_object_t *o, const d3d11_shaders_t *shade
"sample.x = shaderTexture[0].Sample(samplerState, coords).z;\n"
"sample.y = shaderTexture[0].Sample(samplerState, coords).y;\n"
"sample.z = shaderTexture[0].Sample(samplerState, coords).x;\n"
- "sample.a = shaderTexture[0].Sample(samplerState, coords).a;";
+ "sample.a = 1;";
break;
case DXGI_FORMAT_R8G8B8A8_UNORM:
case DXGI_FORMAT_B8G8R8A8_UNORM:
More information about the vlc-commits
mailing list