Interesting. I've read a bit about the stencil buffer but I never fully understood it. What's the correct setup for UIMasked exactly? How should the parent be set, how should the child be set? Maybe some setting is off.