mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +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);
|
pixel = texture (GSK_TEXTURE0, _tex_coord);
|
||||||
|
|
||||||
if (HAS_VARIATION (VARIATION_REVERSE))
|
if (HAS_VARIATION (VARIATION_REVERSE))
|
||||||
pixel = convert_color_to_cicp (color,
|
pixel = convert_color_to_cicp (pixel,
|
||||||
ALT_PREMULTIPLIED,
|
ALT_PREMULTIPLIED,
|
||||||
OUTPUT_COLOR_SPACE, OUTPUT_PREMULTIPLIED);
|
OUTPUT_COLOR_SPACE, OUTPUT_PREMULTIPLIED);
|
||||||
else
|
else
|
||||||
pixel = convert_color_from_cicp (color,
|
pixel = convert_color_from_cicp (pixel,
|
||||||
ALT_PREMULTIPLIED,
|
ALT_PREMULTIPLIED,
|
||||||
OUTPUT_COLOR_SPACE, OUTPUT_PREMULTIPLIED);
|
OUTPUT_COLOR_SPACE, OUTPUT_PREMULTIPLIED);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user