Join GitHub today
XLib: stb_image support with bit transparency #512
X11 do not support transparent images itself. So the clip mask was calculated in this code. X11 ClipMask support only bit transparency.
It's not good enough to use in games, semi-transparent images. But pretty good for UI icons, I think.