[vlc-commits] direct3d11: only saturate before delivering the RGBA

Steve Lhomme git at videolan.org
Tue Mar 21 18:37:00 CET 2017


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Thu Mar 16 12:35:56 2017 +0100| [cbe7a987633806ea071451a6e8182b297d0f217b] | 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=cbe7a987633806ea071451a6e8182b297d0f217b
---

 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