Phaser API Documentation

  Version: 
clearMask()

Description:

Deletes the mainTexture and maskTexture WebGL Textures and deletes the mainFramebuffer and maskFramebuffer too, nulling all references.

This is called when this mask is destroyed, or if you try to creat a new mask from this object when one is already set.

Since: 3.50.0