Closed king514jy closed 6 years ago
Thanks a lot for the report and making it so easy for me to reproduce the problem!
Actually, this looks like a Stage3D issue to me, but I haven't yet pinpointed it exactly. Somehow, the stencil reference value is not used correctly in this case when drawing inside the render texture.
However, I added a workaround that should fix the issue. Please let me know if this helps in your actual project, as well, or if this fix leads to any other problems.
For reference, the same problem is also discussed in this thread in the Starling Forum.
Starling-Framework/samples/demo/src/Game.as
test:https://www.youtube.com/watch?v=YyFy462sxlw