Skip to content

Instantly share code, notes, and snippets.

@hyzhak
Created June 10, 2013 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyzhak/5747824 to your computer and use it in GitHub Desktop.
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.
//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