Put the OpenGL XYZ -> RGB gammas the right way round (#2294).
authorCarl Hetherington <cth@carlh.net>
Fri, 12 Aug 2022 14:18:02 +0000 (16:18 +0200)
committerCarl Hetherington <cth@carlh.net>
Fri, 12 Aug 2022 14:18:24 +0000 (16:18 +0200)
1/2.6 is the correction when converting to XYZ, not to RGB.

src/wx/gl_video_view.cc

index 29d44fcd2a6bf9bbd0126573b432a7dc815347b5..284624372fc7df7ac346054b97ec53fed2d1c170 100644 (file)
@@ -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"