<!-- Thank you for taking the time to contribute towards Phaser. Before submitting your issue, check the following: 1. This repo is for Phaser 3 only. Phaser 2.x issues should be raised in the [Phaser CE](https://github.com/photonstorm/phaser-ce) repo. 2. This repo should not be used for technical support. If you're struggling to use Phaser then post your question to the [forum](https://phaser.discourse.group/) or [Discord](https://phaser.io/community/discord) channels. GitHub Issues are for bugs and feature requests only. 3. Make sure your issue isn't a duplicate, or has already been fixed. 4. If your issue contains _any_ form of hostility it will be closed and you will be blocked from access to all our repos. Be nice. We do this for free. 5. If all the above is ok, fill out the template below. --> ## Version <!-- Enter the version of Phaser you're using. You can find this output to the Dev Tools console in your browser. --> * Phaser Version: 4.0.0-rc.5 ## Description <!-- Write a detailed description of the bug **below** this comment. Include the expected behavior and what actually happens. If the issue is device specific, please say so. --> If a container is masked and the main camera has its viewport set, then the container will be rendered incorrectly ## Example Test Code <!-- All issues must have source code demonstrating the problem. We automatically close issues after 30 days if no code is provided. The code can be pasted directly below this comment, or you can link to codepen, jsbin, or similar. The code will ideally be runnable instantly. The more work involved in turning your code into a reproducible test case, the longer it will take the fix the issue. --> https://phaser.io/sandbox/o1rzdqof In the example above, the container is rendered wrong. To see what it should look like, comment out line 16 which sets the mask of the container.