-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[2.4.4] cacheAsBitmap breaks graphics as mask #2152
Comments
Have you found any workaround on this? |
quick fix for WebGL Graphics is to manually set the mask as dirty ..
gMask.cacheAsBitmap=true;
gMask.dirty=true // call this before applying the mask
..
this.renderSprite.mask=gMask; but ideally would presumably for this to happen in the PIXI source in this function note: it'll get set to dirty=false automatically on the next update, so it's not being continually marked as dirty |
Thank you for taking the time to open this issue. However, official support for Phaser 2 has now ended as we focus on preparing Phaser 3 for beta release. In a bid to keep the project tidy, and avoid confusion, we are closing all v2 related issues. This does not mean your issue won't be looked-at. In November 2016 the Phaser CE (Community Edition) project began. The aim of Phaser CE was to allow the community to continue v2 development. Since then it has gained significant traction, with many updates and releases. If you are still interested in having your issue investigated we strongly recommend testing the latest Phaser CE release. And only if the problem persists, opening an issue on the Phaser CE repo. |
using a cached graphic as a mask used to work but not as of 2.4.4
error
Uncaught TypeError: Cannot read property 'data' of undefined
(phaser.js 17578)
seems to be this line
if(!maskData._webGL[gl.id].data.length)return;
The text was updated successfully, but these errors were encountered: