GNOME Bugzilla – Bug 729743
glcolorconvert: Should preserve alpha channel when doing AYUV -> ARGB
Last modified: 2014-05-11 04:06:09 UTC
Currently it always set the alpha to 1.0 using frag_AYUV_to_RGB " a = 1.0;\n"
commit d8ac00189562fa7b50bd19bffc1f84738bbcceab Author: Matthew Waters <ystreet00@gmail.com> Date: Fri May 9 22:22:43 2014 +1000 gl/colorconvert: preserve alpha in AYUV <-> RGBA conversions https://bugzilla.gnome.org/show_bug.cgi?id=729743
Thanks, note the hash did not match: 2dcbf08d735e19ea72d8f0b7b6658d9a82b78425
+ " vec4 texel;\n" + " texel = texture2D(tex, v_texcoord * tex_scale0);\n" + " texel.gba += offset;\n" + " r = dot(texel.gba, coeff1);\n" + " g = dot(texel.gba, coeff2);\n" + " b = dot(texel.gba, coeff3);\n" + " a = texel.a;\n" Shouldn't it be a = texel.r ? (did test yet, will do this afternoon.
Yes, it should ;) commit 91717ca5c2e0dd8429bb37046674be5df188164a Author: Matthew Waters <ystreet00@gmail.com> Date: Sun May 11 14:02:34 2014 +1000 gl/colorconvert: choose the right alpha component for AYUV -> RGBA