[vlc-commits] d3d11_shaders: fix stray float3 in tone mapping

Steve Lhomme git at videolan.org
Wed Oct 17 16:07:55 CEST 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Oct 15 12:52:20 2018 +0200| [f716c6e2adea71415b1a8a8bccb64ec30ec2a3a6] | committer: Steve Lhomme

d3d11_shaders: fix stray float3 in tone mapping

(cherry picked from commit 8a2935bff7da2ee1ddb9fb609dabd2c0c5012b59)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=f716c6e2adea71415b1a8a8bccb64ec30ec2a3a6
---

 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 8ad3c666a7..2b2e6be0c5 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -324,7 +324,7 @@ HRESULT D3D11_CompilePixelShader(vlc_object_t *o, d3d11_handle_t *hd3d, bool leg
                     {
                         /* HDR tone mapping */
                         psz_tone_mapping =
-                            "static const float3 HABLE_DIV = hable(11.2);\n"
+                            "static const float4 HABLE_DIV = hable(11.2);\n"
                             "rgb = hable(rgb * LuminanceScale) / HABLE_DIV;\n"
                             "return rgb";
                     }



More information about the vlc-commits mailing list