From 6f5dfca48413625f734a3a169ff1b0a152ead7b1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 12 Aug 2022 16:18:02 +0200 Subject: [PATCH] Put the OpenGL XYZ -> RGB gammas the right way round (#2294). 1/2.6 is the correction when converting to XYZ, not to RGB. --- src/wx/gl_video_view.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index 29d44fcd2..284624372 100644 --- a/src/wx/gl_video_view.cc +++ b/src/wx/gl_video_view.cc @@ -209,8 +209,8 @@ static constexpr char fragment_source[] = "\n" "vec4 cubic(float x)\n" "\n" -"#define IN_GAMMA 2.2\n" -"#define OUT_GAMMA 0.384615385\n" // 1 / 2.6 +"#define IN_GAMMA 2.6\n" +"#define OUT_GAMMA 0.454545455\n" // 1 / 2.2 "#define DCI_COEFFICIENT 0.91655528\n" // 48 / 53.37 "\n" "{\n" -- 2.30.2