[vlc-devel] [PATCH 10/14] direct3d11: only saturate before delivering the RGBA
Steve Lhomme
robux4 at videolabs.io
Mon Mar 20 17:28:29 CET 2017
The saturate should be done after the pixel is ready for EOTF.
---
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 2b6e910d1b..e2edd1f9ac 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));\
}\
";
--
2.11.1
More information about the vlc-devel
mailing list