Created
June 10, 2013 10:32
-
-
Save hyzhak/5747824 to your computer and use it in GitHub Desktop.
Need to clear some cached objects before recreate WebGLRenderer of Pixi.js. To avoid of binding on previous 3D context.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//clear some cached objects in Pixi.js | |
PIXI._batchs.length = 0; | |
PIXI.TextureCache = {}; | |
PIXI.BaseTextureCache = {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment