GNOME Bugzilla – Bug 729742
glcolorconvert: Should set alpha to 1 if source is opaque
Last modified: 2014-05-12 12:27:07 UTC
Currently we simply assume that BGRx is like BGRA, though in first form the x means that the padding value is not guarantied opaque. For this reason, glcolorconvert should take this into account, and explicitly set the alpha to 1.0 rather then using the padding value. On armsoc X11 driver, all windows have ARGB visual, which lead to randomly transparent window with BGRx.
We should never ever use the x in the RGBx variants for anything, and instead take 1 or whatever value is correct.
commit bd3e6007101fca3016a870599f7d7c1ac0219857 Author: Matthew Waters <ystreet00@gmail.com> Date: Mon May 12 21:56:06 2014 +1000 gl/convert: clobber alpha channel when needed Needed in the conversion from padded RGB formats to formats with an alpha channel. e.g. BGRx -> ABGR, etc https://bugzilla.gnome.org/show_bug.cgi?id=729742