Could it be that you're switching between an alphablended mode and a masked blend mode, where the mask mode is showing the usually partly non-solid pixels as black, versus applying an alpha blend to them, but still masking the pixels that have no alpha at all?