mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-04-04 14:53:40 -04:00
Currently SrcBlendAlpha and DestBlendAlpha are both ONE, and can combine together to form two. This is not a noticeable problem for UNORM targets because the channels are clamped, but it will likely become a problem if FLOAT targets are more widely used. This change switches DestBlendAlpha to INVSRCALPHA, and starts backgrounds as opaque black instead of transparent black. The blending behavior of stacked transparents is preserved without overflowing the alpha channel.