From: Carl Hetherington Date: Fri, 12 Aug 2022 14:18:02 +0000 (+0200) Subject: Put the OpenGL XYZ -> RGB gammas the right way round (#2294). X-Git-Tag: v2.16.20~3 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=6f5dfca48413625f734a3a169ff1b0a152ead7b1 Put the OpenGL XYZ -> RGB gammas the right way round (#2294). 1/2.6 is the correction when converting to XYZ, not to RGB. --- 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"