[vlc-commits] direct3d11: only saturate before delivering the RGBA
Steve Lhomme
git at videolan.org
Tue Mar 21 18:47:50 CET 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Mar 16 12:35:56 2017 +0100| [500343ab46f0006a90a08866a0543522cf14971b] | committer: Hugo Beauzée-Luyssen
direct3d11: only saturate before delivering the RGBA
The saturate should be done after the pixel is ready for EOTF.
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=500343ab46f0006a90a08866a0543522cf14971b
---
modules/video_output/win32/direct3d11.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index f944036..c22b3b4 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -345,8 +345,8 @@ static const char* globPixelShaderDefault = "\
float3 rgb = (float3)rgba;\
rgb = sourceToLinear(rgb);\
rgb = toneMapping(rgb);\
- rgb = linearToDisplay(saturate(rgb));\
- return float4(rgb, saturate(opacity));\
+ rgb = linearToDisplay(rgb);\
+ return saturate(float4(rgb, opacity));\
}\
";
More information about the vlc-commits
mailing list