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

Steve Lhomme git at videolan.org
Mon Oct 15 13:39:25 CEST 2018


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

d3d11_shaders: fix stray float3 in tone mapping

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

 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 0563a7e0d0..f023de481f 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -483,7 +483,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