diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-08-12 16:18:02 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-08-12 16:18:24 +0200 |
| commit | 6f5dfca48413625f734a3a169ff1b0a152ead7b1 (patch) | |
| tree | 61b07a1b9033ab13d883091fc2dd6161665d1f06 /src | |
| parent | 3f9732bc53e655aa0b4d6f159ab368fdb56e9558 (diff) | |
Put the OpenGL XYZ -> RGB gammas the right way round (#2294).
1/2.6 is the correction when converting to XYZ, not to RGB.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/gl_video_view.cc | 4 |
1 files 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" |
