mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-19 21:40:22 +00:00
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:
parent
33131ad24d
commit
150f57f706
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user