Oof. It's a dumb bug that I've had to fix in other places, it's just not setting that dirty flag on the image when you set the mask. I've filed it, and this time I'll go through and check every function that affects the image (e.g. clear()
as well). Until then, using sprite:markDirty()
is a good workaround.