pixijs: Mask ignored when rendering on RenderTexture (Firefox Linux)

I’ve added a masked sprite to a container, when I render it on screen the mask works correctly but when I try to render it on a RenderTexture the mask is ignored. Problem is, I tested it in some environments, here’s the list:

Windows 10 Manjaro KDE
Chrome Ok Ok
Firefox Ok Bug

I have no clue on the bug’s origin. I’ve created a simple playground, in the upper half you can see the pixi.js behaviour and in the lower half you can see the RenderTexture behaviour.

Expected Behavior

image

Current Behavior

image

Possible Solution

I don’t know of any, maybe using filters will bypass the bug but I haven’t checked.

Steps to Reproduce

Get linux + Firefox (I think?) and use this link below. https://www.pixiplayground.com/#/edit/iJ6CBxiP5PGlzGXt7zi1s

Environment

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 28 (9 by maintainers)

Commits related to this issue

Most upvoted comments

  1. This should fail (w/o fix): https://www.pixiplayground.com/#/edit/dKPnH5fCiFNzBvhhl9Hq5
  2. This should succeed (w/ fix): https://www.pixiplayground.com/#/edit/ILIR4vP9hu6iYbo_xUO6d
  1. fails
  2. succeeds

Ubuntu 20.04 with both:

  • Firefox 94.0
  • Firefox Nightly 96.0a1 (2021-11-19)
1. This should fail (w/o fix): https://www.pixiplayground.com/#/edit/dKPnH5fCiFNzBvhhl9Hq5

2. This should succeed (w/ fix): https://www.pixiplayground.com/#/edit/ILIR4vP9hu6iYbo_xUO6d

@dev7355608 confirmed on on my Ubuntu 20 (Firefox 86)

Hi @SnowyCoder! Did you gain any new insights, and/or did you report this bug to Mozilla yet?