gpu: Fix the cicp conversion

The fragment shader was mixing up pixel and color variables.
And the compilers don't have 'uninitialized variable' warnings :(
This commit is contained in:
Matthias Clasen 2024-07-26 07:24:48 -04:00
parent 33131ad24d
commit 150f57f706

View File

@ -326,11 +326,11 @@ run (out vec4 color,
pixel = texture (GSK_TEXTURE0, _tex_coord);
if (HAS_VARIATION (VARIATION_REVERSE))
pixel = convert_color_to_cicp (color,
pixel = convert_color_to_cicp (pixel,
ALT_PREMULTIPLIED,
OUTPUT_COLOR_SPACE, OUTPUT_PREMULTIPLIED);
else
pixel = convert_color_from_cicp (color,
pixel = convert_color_from_cicp (pixel,
ALT_PREMULTIPLIED,
OUTPUT_COLOR_SPACE, OUTPUT_PREMULTIPLIED);